Skip to content

Commit 6d060a9

Browse files
nielspeterclaude
andcommitted
ci: Upgrade to golangci-lint v2 for Go 1.24+ compatibility
- Update .golangci.yml to v2 format with version field - Change linters.enable to linters.enabled (v2 syntax) - Update CI to use golangci-lint-action@v8 with v2.5.0 - Aligns local (v2.5.0) and CI versions as requested - Fixes Go version compatibility issue (v1 built with Go 1.23) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent fb3b12a commit 6d060a9

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
go-version: '1.24'
7979

8080
- name: golangci-lint
81-
uses: golangci/golangci-lint-action@v4
81+
uses: golangci/golangci-lint-action@v8
8282
with:
83-
version: v1.62
83+
version: v2.5.0
8484
args: --timeout=5m

.golangci.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
1+
# golangci-lint v2 configuration
2+
version: "2"
3+
14
run:
25
timeout: 5m
3-
tests: false
4-
skip-dirs:
5-
- vendor
6-
- third_party
6+
tests: false # Don't analyze test files
77

88
linters:
9-
enable:
9+
enabled:
1010
- errcheck
1111
- govet
1212
- ineffassign
1313
- staticcheck
1414
- unused
1515

16-
linters-settings:
17-
errcheck:
18-
check-blank: false
19-
2016
issues:
21-
exclude-use-default: true
22-
exclude-rules:
23-
# Exclude error checks in test files
24-
- path: _test\.go
25-
linters:
26-
- errcheck
27-
- staticcheck
17+
exclude-use-default: true

0 commit comments

Comments
 (0)