update to go1.27rc2 - #7010
Draft
thaJeztah wants to merge 4 commits into
Draft
Conversation
thaJeztah
commented
Aug 2, 2026
Member
- relates to update to go1.27rc2 moby#53279
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Build golangci-lint with Staticcheck v0.8.0-rc.1 to handle the Go 1.27 AST. Disable SA4023 because unsupported platform stubs cause false positives during multiplatform linting. Apply Go 1.27 formatting and replace the deprecated plain HTTP resolver option. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Go 1.27 changed compress/flate encoder output in CL 707355 while improving compression speed (golang/go#75532). This changes the bytes of every gzip-compressed layer BuildKit produces, and therefore their digests, breaking cache reuse and content dedup against layers built by earlier BuildKit releases. Vendor the writer half of Go 1.26.5's compress/flate as util/compression/go126flate (verbatim copy of tag go1.26.5, c19862e5f8415b4f24b189d065ed739517c548ba) together with the small amount of gzip framing that image layers use, and route the gzip compressor through it. Output is byte-identical to Go 1.26.5 compress/gzip for all compression levels, so layer digests stay stable regardless of the toolchain BuildKit is built with. Note this only covers the plain gzip compressor; estargz and nydus still use the stdlib encoder. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
contains containerd/stargz-snapshotter#2333 Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
tonistiigi
force-pushed
the
bump_go_1.27
branch
from
August 12, 2026 15:56
e29127d to
b128f6c
Compare
Member
|
Added commits:
|
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.