Skip to content

Raise Staticcheck to v0.8.1 for Go 1.27 - #20

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/staticcheck-go1.27
Sep 16, 2026
Merged

rldyourmnd merged 1 commit into
mainfrom
fix/staticcheck-go1.27

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Summary

  • Reproduce the local gate failure: Staticcheck v0.7.0 cannot decode Go 1.27 export data (export data version 4 is greater than maximum supported version 2).
  • Pin honnef.co/go/tools/cmd/staticcheck@v0.8.1 (Staticcheck 2026.2.1), the first stable release with Go 1.27 support. Do not use the RC.
  • Add cmd/check-staticcheck so a drifted pin or an incompatible local toolchain fails before analysis.
  • Run CI on Go 1.27.x so the regression is exercised on GitHub, not only on this host.

Local gate under Go 1.27.1: go test -race ./..., go vet ./..., go run ./cmd/check-staticcheck, go run honnef.co/go/tools/cmd/staticcheck@v0.8.1 ./..., go build ./cmd/agent-runtime, go run ./cmd/check-fuzz, go run ./cmd/check-cold-compile all passed.

Estate pin remains the version-tag v0.1.4 until a later release cut. This PR does not retag or move that pin.

Test plan

  • go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./... fails with export-data version 4
  • go run honnef.co/go/tools/cmd/staticcheck@v0.8.1 ./... passes
  • go run ./cmd/check-staticcheck passes and rejects a drifted pin in tests
  • GitHub CI Gate green on this PR

v0.7.0 cannot decode Go 1.27 export data. Pin the first stable
analyzer that can, probe the local toolchain before analysis, and
run CI on Go 1.27.x.
@rldyourmnd
rldyourmnd merged commit 9deb8f0 into main Sep 16, 2026
8 checks passed
@rldyourmnd
rldyourmnd deleted the fix/staticcheck-go1.27 branch September 16, 2026 13:20
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