Skip to content

build: bump Go to 1.27 and gate toolchain version drift - #176

Merged
josealekhine merged 2 commits into
mainfrom
build/go-version-sync
Sep 23, 2026
Merged

josealekhine merged 2 commits into
mainfrom
build/go-version-sync

Conversation

@josealekhine

Copy link
Copy Markdown
Member

Bump the Go toolchain to 1.27.1 everywhere it is pinned: go.mod, go.work, tools/ctxctl/go.mod, the CI and release workflows, the hack/tool-versions.txt floor, and the steering prose plus its three tool-native copies. golangci-lint moves to v2.13.2 alongside.

The bump initially missed .cursor/rules/tech.mdc, and nothing tied the eight Go pins together, so add hack/check-go-version.sh (make check-go-version): go.mod is the source of truth; go.work and the ctxctl module must match it exactly, every other site must match its major.minor. Wired into make audit and the CI lint job.

Also promote make check-steering into the CI lint job, and fix it to compare a pre-sync snapshot against the regenerated outputs instead of diffing against HEAD, so a consistent-but-uncommitted source/output pair no longer fails make audit mid-bump.

Spec: specs/go-version-sync.md

Bump the Go toolchain to 1.27.1 everywhere it is pinned: go.mod,
go.work, tools/ctxctl/go.mod, the CI and release workflows, the
hack/tool-versions.txt floor, and the steering prose plus its three
tool-native copies. golangci-lint moves to v2.13.2 alongside.

The bump initially missed .cursor/rules/tech.mdc, and nothing tied
the eight Go pins together, so add hack/check-go-version.sh
(make check-go-version): go.mod is the source of truth; go.work and
the ctxctl module must match it exactly, every other site must
match its major.minor. Wired into make audit and the CI lint job.

Also promote make check-steering into the CI lint job, and fix it
to compare a pre-sync snapshot against the regenerated outputs
instead of diffing against HEAD, so a consistent-but-uncommitted
source/output pair no longer fails make audit mid-bump.

Spec: specs/go-version-sync.md

Signed-off-by: Jose Alekhinne <jose@ctx.ist>
@josealekhine josealekhine self-assigned this Sep 23, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Deploying ctx with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6263b42
Status: ✅  Deploy successful!
Preview URL: https://b4582b0c.ctx-bhl.pages.dev
Branch Preview URL: https://build-go-version-sync.ctx-bhl.pages.dev

View logs

@josealekhine
josealekhine merged commit c6628bb into main Sep 23, 2026
18 checks passed
@josealekhine
josealekhine deleted the build/go-version-sync branch September 23, 2026 18:26
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