Skip to content

Commit 2a8aea5

Browse files
committed
CI: Use goinstall mode for golangci-lint action
The prebuilt golangci-lint binary was built with Go 1.25, which is incompatible with our Go 1.26 toolchain. Switch to install-mode: goinstall so golangci-lint is compiled from source using the project's Go version, avoiding the mismatch. Cherry-pick of fix from main to release-v0.37.x. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
1 parent 0be7186 commit 2a8aea5

3 files changed

Lines changed: 405 additions & 2 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ jobs:
4343
fi
4444
echo "$gofmt_out"
4545
- name: golangci-lint
46-
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
46+
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
4747
with:
48-
version: v2.9.0
48+
version: v2.12.2
49+
install-mode: goinstall
4950
only-new-issues: true
5051
args: --timeout=10m
5152
- name: yamllint

‎vendor/github.com/alibabacloud-go/cr-20160607/LICENSE‎

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)