Skip to content

ci: bump golangci-lint to v2.15.0 for Go 1.27 support - #194

Merged
parlakisik merged 1 commit into
mainfrom
ci/golangci-lint-go1.27
Oct 19, 2026
Merged

parlakisik merged 1 commit into
mainfrom
ci/golangci-lint-go1.27

Conversation

@parlakisik

Copy link
Copy Markdown
Contributor

Summary

The Lint job fails on every PR (e.g. #193) with a typecheck error that is unrelated to the code under review:

could not import internal/goarch (-: could not load export data: internal error in importing "internal/goarch"
(cannot decode "internal/goarch", export data version 5 is greater than maximum supported version 4))

golangci-lint v2.13.2 ships a binary built with an older Go and cannot read Go 1.27 export data; CI installs Go 1.27.2.

Changes

  • .github/workflows/ci.yml: pin golangci-lint to v2.15.0 (built with go1.27.0).
  • .golangci.yml: the newer gosec adds G703 (taint-based path traversal), which flags test helpers in internal/cli/setup/core/codex/deploy_test.go that write under t.TempDir(). Exempt G703 in _test.go only, matching the existing G304/G301/G306 test exemptions. Non-test code is still checked.

Testing

  • golangci-lint config verify passes.
  • golangci-lint run --timeout=5m with v2.15.0 locally on Go 1.27.1: 0 issues.

After this merges, ·@·d·ependabot r·ebase on #193 should turn its lint check green.


Generated by Claude Code

golangci-lint v2.13.2 ships a binary built with an older Go and cannot
read Go 1.27 export data, failing typecheck with "export data version 5
is greater than maximum supported version 4". v2.15.0 is built with
go1.27.0.

The newer gosec flags G703 (taint-based path traversal) in test helpers
that write under t.TempDir(); exempt it in _test.go alongside the
existing G304/G301/G306 test exemptions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkzfNyJek9zY4fB4LQrDqE
Signed-off-by: Claude <noreply@anthropic.com>
@parlakisik
parlakisik force-pushed the ci/golangci-lint-go1.27 branch from 53c0334 to 0debbc4 Compare October 19, 2026 04:47
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Deploying ctx with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0debbc4
Status: ✅  Deploy successful!
Preview URL: https://030beef6.ctx-bhl.pages.dev
Branch Preview URL: https://ci-golangci-lint-go1-27.ctx-bhl.pages.dev

View logs

@parlakisik
parlakisik merged commit d56e7c3 into main Oct 19, 2026
18 checks passed
@parlakisik
parlakisik deleted the ci/golangci-lint-go1.27 branch October 19, 2026 04:59
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.

3 participants