Skip to content

Fix panic in buildx debug when solving fails#3823

Merged
crazy-max merged 2 commits intodocker:masterfrom
invidian:fix-result-error-handling
May 5, 2026
Merged

Fix panic in buildx debug when solving fails#3823
crazy-max merged 2 commits intodocker:masterfrom
invidian:fix-result-error-handling

Conversation

@invidian
Copy link
Copy Markdown
Contributor

@invidian invidian commented May 1, 2026

Closes #3822

Copy link
Copy Markdown
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Guarding the mount/input result IDs before indexing looks good, since BuildKit can return a solve error for an exec op before all mount results are available.

The main thing I would change is the test direction. I would rather cover this with an integration test that uses a real Dockerfile reproducer, for example a RUN --mount=type=bind,source=missing,target=/src ... failure through buildx debug --on=error build.

Comment thread build/result_test.go Outdated
Comment thread build/result.go
invidian and others added 2 commits May 4, 2026 15:49
Closes docker#3822

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@invidian invidian force-pushed the fix-result-error-handling branch from 7cdff4d to 9de08b2 Compare May 4, 2026 13:50
@crazy-max crazy-max requested a review from tonistiigi May 4, 2026 14:05
@tonistiigi tonistiigi requested a review from jsternberg May 4, 2026 16:44
@crazy-max crazy-max merged commit e935dcf into docker:master May 5, 2026
160 checks passed
@invidian invidian deleted the fix-result-error-handling branch May 5, 2026 07:46
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.

Panic in containerConfigFromError when running "buildx debug build"

3 participants