Skip to content

solver: fail ADD unpack when xz is missing - #7071

Merged
tonistiigi merged 1 commit into
moby:masterfrom
crazy-max:fix-add-unpack-missing-xz
Aug 26, 2026
Merged

tonistiigi merged 1 commit into
moby:masterfrom
crazy-max:fix-add-unpack-missing-xz

Conversation

@crazy-max

Copy link
Copy Markdown
Member

fixes #7059

ADD --unpack now fails when it detects an xz-compressed archive but cannot start the xz decompressor. Previously, BuildKit treated that decompressor setup failure like a non-archive input, so the build silently copied the .tar.xz file instead of unpacking it.

This keeps the existing fallback behavior for ordinary non-archive files while making missing runtime support visible for archives that BuildKit has already recognized.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max requested a review from tonistiigi August 24, 2026 15:17
@crazy-max
crazy-max marked this pull request as ready for review August 25, 2026 16:03
@crazy-max crazy-max added this to the v0.33.0 milestone Aug 25, 2026
@tonistiigi
tonistiigi merged commit 77afe39 into moby:master Aug 26, 2026
199 checks passed
@crazy-max
crazy-max deleted the fix-add-unpack-missing-xz branch August 26, 2026 08:02
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.

ADD --unpack of an xz-compressed tarball silently results in no unpacking when there's no xz on the PATH

2 participants