Skip to content

update to go1.27rc2 - #7010

Draft
thaJeztah wants to merge 4 commits into
moby:masterfrom
thaJeztah:bump_go_1.27
Draft

update to go1.27rc2#7010
thaJeztah wants to merge 4 commits into
moby:masterfrom
thaJeztah:bump_go_1.27

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

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>
@github-actions github-actions Bot added area/dependencies Pull requests that update a dependency file area/storage labels Aug 12, 2026
@tonistiigi

Copy link
Copy Markdown
Member

Added commits:

cc @AkihiroSuda @ktock

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.

2 participants