Skip to content

chore(go): raise the go.mod language version to 1.27 - #178

Merged
radutopala merged 1 commit into
mainfrom
chore/go-directive-1.27
Aug 27, 2026
Merged

chore(go): raise the go.mod language version to 1.27#178
radutopala merged 1 commit into
mainfrom
chore/go-directive-1.27

Conversation

@radutopala

Copy link
Copy Markdown
Owner

What

Retires the go 1.26.0 / toolchain go1.27.0 split in go.mod and returns the language version to 1.27.0. docs/go.mod follows. The local codeql make targets move their bundle to v2.26.4 and their Go container to 1.27 together.

Why

The directive was pinned to 1.26 because CodeQL's Go extractor caps at the language version in go.mod and forces GOTOOLCHAIN=local; seeing go 1.27.0 it pinned the runner to Go 1.26 and then could not load the module at all. codeql-action v4.37.9 (2026-08-26) ships CodeQL CLI 2.26.4, so the gate that forced the split has moved.

The bundle and Go container in the local targets have to move as a pair — raising one alone gives the extractor export data it cannot read, which is the same failure in a different place.

Verification

  • go build ./..., go vet ./... — clean on Go 1.27.0
  • make lint-go — 608 issues before processing, 0 after
  • go mod tidy -diff — no drift

One caveat worth stating plainly: this repo uses CodeQL default setup, so the CLI version is not pinned from here, and the most recent analyses before this PR were still reporting 2.26.3 rather than 2.26.4. Default-setup rollout lags the Action release. I also could not find a "Go 1.27 is now supported" entry in the Go extractor changelog, where every prior Go version bump has one.

So the CodeQL check on this PR is the real test. If it passes, the concern was unfounded. If it fails with go.mod requires go >= 1.27.0 (running go 1.26.x; GOTOOLCHAIN=local), the gate has not actually moved for default-setup repos and this should wait.

@radutopala radutopala closed this Aug 27, 2026
@radutopala radutopala reopened this Aug 27, 2026
@radutopala
radutopala force-pushed the chore/go-directive-1.27 branch 2 times, most recently from 726b214 to ff0dc5c Compare August 27, 2026 10:33
@radutopala radutopala closed this Aug 27, 2026
@radutopala radutopala reopened this Aug 27, 2026
CodeQL's Go extractor caps at the language version in go.mod and forces
GOTOOLCHAIN=local, so the directive was held at 1.26 while a separate
toolchain line carried 1.27. codeql-action v4.37.9 now ships CodeQL CLI
2.26.4, so that split is retired: the go directive returns to 1.27.0 and
the redundant toolchain line goes with it.

docs/ moves the same way. The local codeql targets bump their bundle and
Go container together, since raising one without the other hands the
extractor export data it cannot read.
@radutopala
radutopala force-pushed the chore/go-directive-1.27 branch from ff0dc5c to 2a15871 Compare August 27, 2026 10:51
@radutopala
radutopala enabled auto-merge (rebase) August 27, 2026 10:52
Repository owner deleted a comment from radutopalama Aug 27, 2026
@radutopala
radutopala merged commit fc37858 into main Aug 27, 2026
17 checks passed
@radutopala
radutopala deleted the chore/go-directive-1.27 branch August 27, 2026 10:57
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