Skip to content

fix(ci): build golangci-lint from source for go 1.25 compat#27

Closed
howard-eridani wants to merge 1 commit intomainfrom
daedalus/fix-ci-lint-go-version
Closed

fix(ci): build golangci-lint from source for go 1.25 compat#27
howard-eridani wants to merge 1 commit intomainfrom
daedalus/fix-ci-lint-go-version

Conversation

@howard-eridani
Copy link
Copy Markdown
Contributor

Summary

  • Replace golangci-lint-action@v7 (pre-built binary, Go 1.24) with go install from source
  • This builds golangci-lint with the same Go 1.25 toolchain that setup-go provides, avoiding the "Go language version too low" error
  • Fixes CI lint failure: can't load config: the Go language version (go1.24) used to build golangci-lint is lower than the targeted Go version (1.25.0)

Test plan

  • CI lint job passes on this PR
  • CI test + build jobs unaffected

🤖 Generated with Claude Code

The pre-built golangci-lint v2.11.3 binary is compiled with Go 1.24,
which refuses to lint projects with `go 1.25.0` in go.mod. Instead of
using the golangci-lint-action (which downloads pre-built binaries),
install from source via `go install` so it's built with the same Go
version that setup-go provides (1.25), avoiding the version mismatch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@howard-eridani
Copy link
Copy Markdown
Contributor Author

Closing — this issue is already resolved. PR #20 was merged with golangci-lint-action@v7 + version: v2.11.3 (built with Go 1.25). Main CI is green (Lint+Test+Build all pass). No need to build from source.

@howard-eridani howard-eridani deleted the daedalus/fix-ci-lint-go-version branch March 16, 2026 12:25
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