Skip to content

Commit 85ae19b

Browse files
TMHSDigitalclaude
andcommitted
ci: bump golangci-lint to v2.14.0 and lint on the stable Go leg
v2.12.2 could not type-check the Go 1.27 standard library, which forced lint onto the 1.24.2 leg. v2.14.0 lints cleanly under Go 1.27.1, so lint now runs on the toolchain releases are built with. Refs #38 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a56280c commit 85ae19b

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎.github/workflows/go.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99

1010
jobs:
1111
# Two legs: "minimum" proves the go.mod floor (1.24.2) still builds and
12-
# passes and is linted; "stable" is the toolchain releases are built with,
13-
# and is where govulncheck runs (#38).
12+
# passes; "stable" is the toolchain releases are built with, and is where
13+
# lint and govulncheck run (#38).
1414
build:
1515
runs-on: ubuntu-latest
1616
permissions:
@@ -69,14 +69,13 @@ jobs:
6969
- name: Test
7070
run: go test -v -race ./...
7171

72-
# Lint runs on the minimum leg: the pinned golangci-lint cannot type-check
73-
# newer standard libraries (Go 1.27 adds generic methods). Move it to the
74-
# stable leg when bumping golangci-lint.
72+
# Lint on the stable leg: golangci-lint must be built with a Go at least as
73+
# new as the toolchain it analyses (v2.12 could not type-check Go 1.27).
7574
- name: Run golangci-lint
76-
if: matrix.go == 'minimum'
75+
if: matrix.go == 'stable'
7776
uses: golangci/golangci-lint-action@v9
7877
with:
79-
version: v2.12.2
78+
version: v2.14.0
8079

8180
# Fails on vulnerabilities reachable from this code, in dependencies or in
8281
# the Go standard library of the toolchain releases are built with.

0 commit comments

Comments
 (0)