Commit c11b45b
ci: pin Go 1.23 in the lint job to match golangci-lint v1.64.5
CI run 24932255728 had Verify and Test Coverage green but Lint failed
on 10 typecheck errors of the form:
suite.Assert undefined (type *HttpSuiteTest has no field or method Assert)
The methods exist (testify's suite.Suite, embedded transitively), and
both `go build` and `go test ./...` resolve them fine. The failure is
exclusive to golangci-lint's bundled type-checker, which can't follow
methods promoted from external packages when the toolchain is newer
than the linter's build base.
golangci-lint v1.64.5 was built against Go 1.23. Pinning `go-version:
'1.23'` in the lint job aligns the typechecker with its own ABI. Verify
and Test Coverage stay on `stable` so production code is exercised
against the newest supported toolchain.
The pin is documented inline so a future bump of golangci-lint also
bumps the Go version in lockstep.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 07fb0fc commit c11b45b
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
0 commit comments