You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken BuildKit deduplication when using cache mounts #495
However, the fix is not recursive so we have the same problem when using references of references.
We fixed the issue in AWS by removing cache mounts (#481), however all other packages using cache mounts are still broken.
Suggested resolution:
Implement a proper fix for cache mounts to that take into account reference of references. !!! NOTE: I tried to recursively resolve the reference but I run into issues. Unfortunately I don't remember exactly what the issue was, but I think I ended up with multiple pipelines sharing the same cache (e.g. foo: go.#Build and bar: go.#Build sharing the same cache because they're both references to go, which is wrong, they shouldn't share the cache).
If we can't find a quick solution for that, instead of removing the mount in the cue config like we did for s3 (which hides the problem until next time), perhaps we should disable cache mounts in dagger itself (e.g. replace with a mkdir in LLB). At least it fixes the problem for ALL configs without requiring any Cue changes, and we can re-enable them at once when we have a fix
Activity
shykes commentedon May 28, 2021
+1 on disabling cache mounts for now, and continuing to look for a long term fix.
samalba commentedon May 29, 2021
+2
samalba commentedon Jun 14, 2021
Implemented workaround: #594 so the long term fix can wait a little more.
aluzzardi commentedon Jan 7, 2022
@grouville Could you please verify this works with Europa?
grouville commentedon Feb 12, 2022
Ok, tested with high level api (yarn.#Build, docker.#Run and engine API). example: https://gist.github.com/grouville/38ab3d239a492076ce6efdc14e3df95d
No deduplication found, LGTM to me. Closing this @aluzzardi