Skip to content

Conversation

@tonistiigi
Copy link
Member

fix #6256

When multiple exports run in parallel, inline cache exporting can run for each of them into the same cache exporter instance. Inline cache exporter can only be invoked multiple times sequentially. There is a 'reset()` call after every invocation that completely switches out the internal cache chains collector.

Before v0.25, this caused some corruption in the inline cache (or some unknown error). Since v0.25, this case is likely to trigger an internal consistency check error and fail the build.

When multiple exports run in parallel inline cache exporting
can run for each of them into the same cache exporter instance.
Inline cache exporter can only be invoked multiple times
sequentially. There is a 'reset()` call after every invocation
that completely switches out the internal cache chains collector.

Before v0.25 this caused some corruption in inline cache
(or some unknown error). Since v0.25 this case is likely to
trigger internal consistency check error and fail the build.

Signed-off-by: Tonis Tiigi <[email protected]>
@crazy-max crazy-max merged commit fe65d5f into moby:master Oct 6, 2025
197 of 200 checks passed
hsw0 added a commit to hsw0/test-devcontainer that referenced this pull request Oct 7, 2025
Seems to fixed this bug - moby/buildkit#6263

```
buildx failed with: ERROR: failed to build: failed to solve: failed to load ref: missing descriptor handlers for lazy blobs [sha256:...]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency is not part of the same cache chain

2 participants