docker / buildx

Docker CLI plugin for extended build capabilities with BuildKit
Apache License 2.0
3.49k stars 471 forks source link

build: fix sharedkey computation for local context #2558

Closed tonistiigi closed 3 months ago

tonistiigi commented 3 months ago

fixes #2552 regression from #2254 (v0.14)

When LocalDirs were changed to LocalMounts, this broke the sharedKey computation that was based on the context directory path. SharedKey defines if directory is valid candidate for incremental context transfer and if not set properly then different directories do metadata-based transfers to same destination.