Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit bacf7ec

Browse files
kwentclaude
andcommitted
Fix golangci-lint by building from source with Go 1.25
Use install-mode: goinstall to build golangci-lint from source with Go 1.25 instead of downloading a prebuilt binary built with Go 1.24. Changes: - Add install-mode: goinstall to golangci-lint-action - Forces local build with Go 1.25 - Resolves "Go language version is lower than targeted Go version" error - Use Go 1.25 for both golangci and gomod jobs - Add check-latest: true to ensure latest Go patch version - Add --timeout=5m for golangci-lint - Remove deprecated id: go field - Improve formatting and consistency This is the proper long-term solution, not a workaround. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c2770bf commit bacf7ec

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/lint.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,37 @@ jobs:
1010
steps:
1111
- name: Checkout Repository
1212
uses: actions/checkout@v4
13-
- name: Set up Go 1.x
13+
14+
- name: Set up Go
1415
uses: actions/setup-go@v5
1516
with:
16-
go-version: '1.24'
17-
id: go
17+
go-version: '1.25'
18+
check-latest: true
19+
1820
- name: Run Golangci Linter
1921
uses: golangci/golangci-lint-action@v6
2022
with:
2123
version: latest
24+
install-mode: goinstall
25+
args: --timeout=5m
26+
2227
gomod:
2328
runs-on: ubuntu-latest
2429
steps:
25-
- name: Set up Go 1.x
30+
- name: Set up Go
2631
uses: actions/setup-go@v5
2732
with:
2833
go-version: '1.25'
29-
id: go
34+
check-latest: true
35+
3036
- name: Checkout Repository
3137
uses: actions/checkout@v4
38+
3239
- run: |
3340
go mod tidy
3441
git diff --exit-code go.mod
3542
git diff --exit-code go.sum
43+
3644
hadolint:
3745
runs-on: ubuntu-latest
3846
steps:
@@ -41,6 +49,7 @@ jobs:
4149
uses: brpaz/hadolint-action@master
4250
with:
4351
dockerfile: 'Dockerfile'
52+
4453
goreleaser:
4554
runs-on: ubuntu-latest
4655
steps:

0 commit comments

Comments
 (0)