dotnet / docker-tools

This is a repo to house some common tools for our various docker repos.
MIT License
124 stars 46 forks source link

Add workaround for incorrect BuildKit file caching behavior #1173

Closed lbussell closed 1 year ago

lbussell commented 1 year ago

This fixes the issue that we saw for patch Tuesday where the wrong Dockerfile was cached for some 7.0 runtime Dockerfiles.

Please see https://github.com/moby/buildkit/issues/1368

It's fixed in Docker version 23, but the bug is in the agent code and not the client, so we would have to wait until our build agents are updated.

dotnet-issue-labeler[bot] commented 1 year ago

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

MichaelSimons commented 1 year ago

Please log a follow-up issue to remove this workaround once the buildkit fix is picked up.

lbussell commented 1 year ago

Please log a follow-up issue to remove this workaround once the buildkit fix is picked up.

Filed https://github.com/dotnet/docker-tools/issues/1174