-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfiles aren't rebuilt when there are changes to dependent Dockerfiles #1525
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
1 similar comment
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
This seems like a duplicate of #1516. That had been fixed and buildtools-prereqs does have version of ImageBuilder with the fix. This requires further investigation. |
Also found #1455 which looks like the same issue. It was closed as not planned - could we reevaluate given that we keep hitting this? |
Thanks! I don't have permission - if you reopen that we can close this one as a duplicate. |
There seems to be some problem with the caching logic. Touching a Dockerfile causes it to be rebuilt, but in some cases images that depend on the rebuilt one don't get rebuilt. Context from dotnet/dotnet-buildtools-prereqs-docker#1313:
I suspect it is related to the use of multistage dockerfiles. Maybe the caching logic only checks the base image of the last stage here:
docker-tools/src/Microsoft.DotNet.ImageBuilder/src/ImageCacheService.cs
Lines 153 to 169 in b8c26b6
Related: #1270
The text was updated successfully, but these errors were encountered: