Skip to content

Commit 5e74c46

Browse files
ernadoclaude
andcommitted
ci(lint): pin golangci-lint analysis target to go 1.24
The released golangci-lint binary is built with go1.24 and refuses a module whose go.mod targets 1.25. Set run.go to 1.24 so the linter accepts the module; the code itself stays on the go.mod toolchain. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8d5beac commit 5e74c46

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
version: "2"
22

3+
run:
4+
# Pin the analysis target to 1.24 so the released golangci-lint binary (built
5+
# with go1.24) accepts the module even though go.mod targets a newer Go.
6+
go: "1.24"
7+
38
linters:
49
default: none
510
enable:

0 commit comments

Comments
 (0)