Commit 09fd0ed
committed
ci: lint follows go.mod's Go, not whatever is stable today
golangci-lint is a prebuilt binary and can only parse source up to the Go
release it was built with. `go-version: stable` hands it whatever Go shipped
most recently, so Go 1.27.0 going stable made v2.11 (built with go1.26) panic
on load — "file requires newer Go version go1.27" — turning lint red on every
open PR without a single repo change.
ci.yml already resolves Go from go.mod. Do the same here so the linter's
toolchain moves when the module moves, and an upstream release cannot break
the gate on its own.1 parent 801967f commit 09fd0ed
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
0 commit comments