Commit d37492a
fix(golangci-lint): use /v2 module path for go install per Go conventions
The previous fix prioritized GitHub binary downloads, but the go install
fallback was still using the v1 module path which only has versions up to
v1.64.8.
Go modules v2+ require a /v2 suffix in the module path per semantic import
versioning conventions. golangci-lint v2.5.0 is available in the Go module
proxy at: github.com/golangci/golangci-lint/v2
Changes:
- Updated go install command to use /v2 module path
- Added comment explaining the v2+ Go module convention
- Verified v2.5.0 is available: https://proxy.golang.org/github.com/golangci/golangci-lint/v2/@latest
Result: Both GitHub binary (primary) and go install (fallback) now correctly
install v2.5.0 instead of v1.64.8.
Credit: User pointed out the v2 module path requirement for Go v2+ versions.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 189ef5f commit d37492a
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| 744 | + | |
744 | 745 | | |
745 | | - | |
| 746 | + | |
746 | 747 | | |
747 | 748 | | |
748 | 749 | | |
| |||
0 commit comments