Skip to content

Commit c77243d

Browse files
committed
chore: adjust linter to use goinstall for compatibility with Go 1.26
1 parent 2143e4e commit c77243d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ jobs:
1919
go-version: "1.26"
2020
- uses: golangci/golangci-lint-action@v8
2121
with:
22-
# v2.x is required because we target `go 1.26` in go.mod; older
23-
# golangci-lint binaries are built with go1.24 and refuse to load.
2422
version: v2.5.0
23+
# Build the linter from source with the runner's Go. Prebuilt
24+
# golangci-lint binaries are released built with go1.25; if any
25+
# file under analysis (theirs or transitive dep) needs go1.26
26+
# the binary panics. `goinstall` sidesteps that by compiling the
27+
# linter with the same Go we use to compile the project.
28+
install-mode: goinstall
2529

2630
test:
2731
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)