Skip to content

Commit 7a68b3a

Browse files
committed
fix: Install golangci-lint from source for Go 1.25 compatibility
The golangci-lint-action uses pre-built binaries that were compiled with Go 1.24, which can't analyze code targeting Go 1.25.3. Changed to install golangci-lint from source using the Go 1.25 environment, which ensures compatibility with the project's Go version. Fixes lint error: 'the Go language version (go1.24) used to build golangci-lint is lower than the targeted Go version (1.25.3)'
1 parent abd1a8a commit 7a68b3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
go-version: ${{ env.GO_VERSION }}
3030
cache: true
3131

32+
- name: Install golangci-lint
33+
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
34+
3235
- name: Run golangci-lint
33-
uses: golangci/golangci-lint-action@v4
34-
with:
35-
version: latest
36-
args: --timeout=5m
36+
run: golangci-lint run --timeout=5m
3737

3838
# Test job - runs unit and integration tests with Go version matrix
3939
test:

0 commit comments

Comments
 (0)