Repository navigation
Commit b763f01
committed
ci: unbreak the lint job under Go 1.27
golangci-lint v2.12.2 is built with go1.26 and panics while typechecking
the Go 1.27 standard library:
panic: file requires newer Go version go1.27 (application built with go1.26)
The workflow installs `stable`, which now resolves to 1.27.1, so the job
fails before it reaches any of this repository's code. Bump the pin to
v2.13.2, which is built with go1.27.
That version renames one linter and surfaces two issues the old one did
not:
- exhaustruct ships its v5 rewrite under a new name, and only the new
name matches from v2.13 on, so the existing disable entry silently
stopped applying. List both, the way gomodguard already is.
- The goconst half of the nolint directive on replaceSemanticPaths no
longer suppresses anything. Drop it, keep the gochecknoglobals half.
- pkg/engine/helm carries upstream's canonical-import-path comment,
which Go ignores in module mode. Exclude the package from modernize
rather than editing a file whose whole point is staying close to
upstream.
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <[email protected]>1 parent 7d48e60 commit b763f01
3 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
| 16 | + | |
8 | 17 | | |
9 | 18 | | |
10 | 19 | | |
| |||
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
138 | 154 | | |
139 | 155 | | |
140 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
| 938 | + | |
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
| |||
0 commit comments