Skip to content

feat: bring every Go toolchain pin to go1.27.2 (the latest stable - #353

Merged
jwilder merged 5 commits into
masterfrom
toolchain-bump-2026-10-16
Oct 17, 2026
Merged

jwilder merged 5 commits into
masterfrom
toolchain-bump-2026-10-16

Conversation

@jwilder

@jwilder jwilder commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Problem

Where the toolchain is pinned today (master d9fd48f):

What changes

  • Bump the Docker build image to golang:1.27.2 and guard the pin
  • Use errors.AsType for exit-code extraction
  • Use sync.WaitGroup.Go for wait and signal goroutines
  • Use maps.Copy to merge the template func map

Result

Bring every Go toolchain pin in dockerize to go1.27.2, the newest stable release (go.dev/dl lists go1.27.2 and go1.26.9 as of 2026-10-16). go1.27.2 carries security fixes to crypto/tls, html/template, net/http, net/textproto, os and the go command. dockerize uses net/http in its HTTP wait checks (waitForHTTP), so the binaries and the Docker image should be built with it. After the bump, adopt the newer std idioms the modernize analyzer suggests, one per step.

Testing

Every step runs the full suite before it's committed:

  • go test -v -race./..., which includes the e2e/ package
  • golangci-lint run./... with the repo's .golangci.yml
  • go vet./... and govulncheck./...
  • go build for linux/darwin × amd64/arm64, as in CI
  • Step 1 also runs docker build. and checks --version and --help on the image.

Pin the Dockerfile builder to golang:1.27.2 to match the go directive
in go.mod, and add a test that fails when the two drift apart.

govulncheck -show verbose reports one module-level finding, GO-2026-5932
(golang.org/x/crypto v0.57.0, openpgp package, no fixed version). No
reachable vulnerabilities are found.
Replace the var-and-errors.As pattern with the generic errors.AsType in the exit code paths and tests, and cover an ExitError wrapped with %w.
Move the func map merge into templateFuncMap so it can be tested, and copy dockerize's functions over sprig's with maps.Copy. Add a test that every dockerize function, including those that shadow sprig names, is the one in the merged map.
@jwilder
jwilder merged commit f8e0b6a into master Oct 17, 2026
12 checks passed
@jwilder
jwilder deleted the toolchain-bump-2026-10-16 branch October 17, 2026 05:12
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.

1 participant