Skip to content

fix(ci): support Go 1.27 - #143

Merged
SVilgelm merged 1 commit into
mainfrom
fix/go-1.27-ci
Sep 8, 2026
Merged

fix(ci): support Go 1.27#143
SVilgelm merged 1 commit into
mainfrom
fix/go-1.27-ci

Conversation

@SVilgelm

@SVilgelm SVilgelm commented Sep 8, 2026

Copy link
Copy Markdown
Member

CI on main and on the open dependabot PRs fails since the matrix picked up Go 1.27.

Go 1.27 turned json.RawMessage into an alias for jsontext.Value, so the parser now sets the Go package and type for it explicitly to keep the generated schema stable across Go versions. The old golangci-lint (v2.4.0) cannot type-check Go 1.27 export data, so it is bumped to v2.13.2 and the handful of new findings are addressed (reflect.Ptr -> reflect.Pointer, a preallocation, a gofumpt reformat, and goconst excluded for tests like gosec already is). The bumped tools module requires Go 1.26, and the runners pin GOTOOLCHAIN=local, so the junit step now invokes go-junit-report with go -C .github/tools and GOTOOLCHAIN=auto; unlike -modfile, -C lets the older matrix versions switch toolchains automatically.

- pin the Go type reported for json.RawMessage, which became an alias
  for jsontext.Value in Go 1.27
- bump golangci-lint to v2.13.2 (Go 1.27 typecheck support) and fix
  the new findings; skip goconst for tests
- run go-junit-report via `go -C` with GOTOOLCHAIN=auto so older
  matrix Go versions can use the newer tools module

Assisted-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MTahE2aZEDH5dF4b8R87Ko
Signed-off-by: Sergey Vilgelm <sergey@vilgelm.com>
Copilot AI lite review requested due to automatic review settings September 8, 2026 02:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@SVilgelm
SVilgelm merged commit 38f41d3 into main Sep 8, 2026
12 checks passed
@SVilgelm
SVilgelm deleted the fix/go-1.27-ci branch September 8, 2026 03: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.

2 participants