Skip to content

fix(build): Upgrade moby/go-archive to v0.3.3 to address extraction regressions - #749

Merged
Bin Du (northtyphoon) merged 3 commits into
mainfrom
copilot/update-to-v033
Oct 3, 2026
Merged

Bin Du (northtyphoon) merged 3 commits into
mainfrom
copilot/update-to-v033

Conversation

Copilot AI commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Purpose of the PR

  • Regression: The v0.3.0 upgrade in build(deps): bump github.com/moby/go-archive from 0.2.0 to 0.3.0 #741 introduced failures when extracting archives containing absolute symlink or hardlink targets and certain device nodes.
  • Change: Upgrade github.com/moby/go-archive to v0.3.3 and refresh the vendored source. This incorporates the upstream regression fixes while retaining the path-traversal protection.

Co-authored-by: Zefty <25576710+Zefty@users.noreply.github.com>
@Zefty
Jaime Wu (Zefty) marked this pull request as ready for review October 2, 2026 01:35
@Zefty Jaime Wu (Zefty) changed the title Upgrade moby/go-archive to v0.3.3 to fix extraction regressions fix(moby): Upgrade moby/go-archive to v0.3.3 to fix extraction regressions Oct 2, 2026
@Zefty
Jaime Wu (Zefty) marked this pull request as draft October 2, 2026 01:35
Copilot AI changed the title fix(moby): Upgrade moby/go-archive to v0.3.3 to fix extraction regressions Upgrade moby/go-archive to v0.3.3 to address extraction regressions Oct 2, 2026
@Zefty Jaime Wu (Zefty) changed the title Upgrade moby/go-archive to v0.3.3 to address extraction regressions fix(build): Upgrade moby/go-archive to v0.3.3 to address extraction regressions Oct 2, 2026
@Zefty
Jaime Wu (Zefty) marked this pull request as ready for review October 2, 2026 01:39
Co-authored-by: Zefty <25576710+Zefty@users.noreply.github.com>
Co-authored-by: Zefty <25576710+Zefty@users.noreply.github.com>

@northtyphoon Bin Du (northtyphoon) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@northtyphoon
Bin Du (northtyphoon) merged commit 17c8ea8 into main Oct 3, 2026
4 checks passed
Copilot AI added a commit that referenced this pull request Oct 5, 2026
… regression

TestGetContextFromReaderUntarsDeviceNode was added in #749 to mirror the
go-archive v0.3.3 release note about device nodes (moby/go-archive#103),
but it does not exercise that bug. The v0.3.0 regression only fails when
opening the device node fails while applying its mode (for example on a
nodev mount); extracting dev/ptmx into a normal temp directory succeeds
on both v0.3.0 and v0.3.3, so the test passes against the buggy version.

It also needs CAP_MKNOD, so it either skipped or failed on the non-root
ADO agent, and its mknod probe tripped gosec G115 (uint64 -> int).

The implied-parent, absolute-symlink and absolute-hardlink tests added
in #749 do fail on the affected go-archive versions and are kept.

Co-authored-by: Zefty <25576710+Zefty@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants