Skip to content

Commit 2fc2f6b

Browse files
Bharath-codeclaude
andcommitted
ci: build golangci-lint from source via goinstall
The action's prebuilt golangci-lint is compiled with an older Go and refuses to analyze Go 1.26 code. install-mode: goinstall builds it with the runner's toolchain instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 5473539 commit 2fc2f6b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ jobs:
5353
uses: golangci/golangci-lint-action@v6
5454
with:
5555
version: latest
56+
# Build golangci-lint with the repo's Go toolchain so it can analyze
57+
# the targeted Go version (prebuilt binaries lag behind new releases).
58+
install-mode: goinstall

0 commit comments

Comments
 (0)