Repository navigation
pkg/archive: remove redundant github.com/moby/sys/sequential dependency - #13675
Merged
Merged
Conversation
Go 1.26 adds support for passing Windows file flags via os.OpenFile, eliminating the need to call windows.CreateFile directly. github.com/moby/sys/sequential v0.7.0 uses this functionality when compiled with go1.26, but provides fallbacks for older Go versions. Given that containerd has go1.26 as a minimum requirement, we can remove github.com/moby/sys/sequential as an intermediate, and implement the code locally. ref: - moby/sys@9d2fc63 - https://go-review.googlesource.com/c/go/+/699415 - https://go-review.googlesource.com/c/go/+/724621 Signed-off-by: Sebastiaan van Stijn <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the github.com/moby/sys/sequential dependency from pkg/archive by using Go 1.26+ support for passing Windows file flags directly via os.OpenFile, while retaining the sequential-scan behavior on Windows to avoid standby-list depletion when reading large files.
Changes:
- Drop
github.com/moby/sys/sequentialfromgo.mod,go.sum, and vendored modules. - Replace
sequential.Open/sequential.OpenFileusage inpkg/archive/tar_windows.gowithos.OpenFile(...|windows.O_FILE_FLAG_SEQUENTIAL_SCAN, ...). - Remove the vendored
vendor/github.com/moby/sys/sequentialpackage.
Reviewed changes
Copilot reviewed 2 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
pkg/archive/tar_windows.go |
Switches Windows sequential I/O to os.OpenFile + windows.O_FILE_FLAG_SEQUENTIAL_SCAN (Go 1.26+). |
go.mod |
Removes the github.com/moby/sys/sequential requirement. |
go.sum |
Drops checksums for the removed github.com/moby/sys/sequential module. |
vendor/modules.txt |
Removes the vendored module entry for github.com/moby/sys/sequential. |
vendor/github.com/moby/sys/sequential/* |
Deletes the vendored sequential package sources/license/docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
vvoland
approved these changes
Jun 26, 2026
djdongjin
approved these changes
Jun 26, 2026
Member
Author
|
FWIW; I noticed some warning as well on the Vagrant tests; Run sudo BOX=$BOX RUNC_FLAVOR=$RUNC_FLAVOR vagrant up --provision-with=selinux,install-runc,install-gotestsum,test-integration
sudo BOX=$BOX RUNC_FLAVOR=$RUNC_FLAVOR vagrant up --provision-with=selinux,install-runc,install-gotestsum,test-integration
shell: /usr/bin/bash -e {0}
env:
GOTOOLCHAIN: local
BOX: almalinux/8
CGROUP_DRIVER: cgroupfs
RUNC_FLAVOR: runc
Warning: NING] Unrecognized arguments: libvirt_ip_command
Bringing machine 'default' up with 'libvirt' provider... |
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Go 1.26 adds support for passing Windows file flags via os.OpenFile, eliminating the need to call windows.CreateFile directly.
github.com/moby/sys/sequential v0.7.0 uses this functionality when compiled with go1.26, but provides fallbacks for older Go versions.
Given that containerd has go1.26 as a minimum requirement, we can remove github.com/moby/sys/sequential as an intermediate, and implement the code locally.
ref: