Skip to content

chore(go): upgrade Go toolchain to 1.27.1 - #1277

Merged
jablan merged 3 commits into
mainfrom
chore/upgrade-go-1.27
Sep 18, 2026
Merged

jablan merged 3 commits into
mainfrom
chore/upgrade-go-1.27

Conversation

@jablan

@jablan jablan commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bump the Go toolchain used to build and test clients/cli (and CI itself) from 1.24.4 to the latest stable release, 1.27.1
  • Set the go directive in openapi-generator/templates/go/go.mod.mustache (and the generated clients/go/go.mod) to go 1.21 — deliberately not 1.27.1: clients/go is a published SDK consumed by external projects, so requiring 1.27.1 there would force a breaking minimum-version bump on any consumer using an older Go toolchain. go 1.21 still gets module graph pruning and GOTOOLCHAIN support while staying broadly compatible; the actual build/CI toolchain (1.27.1) is unaffected by this, since go.mod's directive is a floor, not a pin.
  • Update the Go pin in .tool-versions and the relevant CI workflows (build.yml, lint.yml, test-cli.yml, test-go.yml) to 1.27.1
  • Refresh golang.org/x/* transitive deps for the CLI module (oauth2, sys, text)
  • Fix a pre-existing go vet failure in clients/go/config_test.go (%q used on an int arg) that was silently failing go test ./... on main regardless of Go version

Test plan

  • clients/go: go build ./... and go test ./... pass under Go 1.27.1 with the go 1.21 directive
  • clients/cli: go mod tidy, go build ., and go test ./... pass under Go 1.27.1
  • Confirmed the config_test.go vet failure pre-existed on main under both Go 1.24.4 and 1.27.1 (unrelated to this bump)

🤖 Generated with Claude Code

Bumps the Go version used to build clients/cli and clients/go (via the
go.mod.mustache template) from 1.24.4 to the latest stable release,
updates the corresponding CI workflow pins, and refreshes
golang.org/x/* transitive deps (oauth2, sys, text) for the CLI module.
Also fixes a pre-existing go vet failure in clients/go/config_test.go
(%q used on an int arg) that was blocking `go test` on main regardless
of Go version.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

Doc-only edits (descriptions, examples) do not appear here.

No changes detected

jablan and others added 2 commits September 17, 2026 13:38
clients/go is a published SDK consumed by external projects, unlike
clients/cli which is our own build. Requiring go 1.27.1 there would be
a breaking minimum-version bump for any consumer on an older
toolchain. go 1.21 keeps module graph pruning and GOTOOLCHAIN support
while staying broadly compatible; the CI/build toolchain (1.27.1) is
unaffected since that's a floor, not a pin.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Leftover from unrelated local state, not part of this Go upgrade.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jablan
jablan merged commit 61ec0b4 into main Sep 18, 2026
13 checks passed
@jablan
jablan deleted the chore/upgrade-go-1.27 branch September 18, 2026 14:10
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.

2 participants