Skip to content

Commit 6782d57

Browse files
committed
try to fix staticcheck
1 parent 8a3bfaa commit 6782d57

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/lint.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,26 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v3
3636

37+
# NOTE: The latest version of staticcheck specifies "go 1.23" in its go.mod
38+
# file, but when checking Go 1.24 code, needs to be built with Go 1.24. So it
39+
# doesn't work unless built/installed with Go 1.24. We could use the pre-built
40+
# binaries, but hard-coding the "go install" version is probably simpler.
41+
42+
# - uses: actions/setup-go@v4
43+
# with:
44+
# go-mod-file: 'go.mod'
45+
46+
# - name: Install staticcheck
47+
# run: |
48+
# go install honnef.co/go/tools/cmd/staticcheck@v0.6.1
49+
3750
- uses: actions/setup-go@v4
3851
with:
39-
go-mod-file: 'go.mod'
52+
go-version: '1.24.1'
4053

4154
- name: Install staticcheck
4255
run: |
43-
go install honnef.co/go/tools/cmd/staticcheck@v0.6.1
56+
go1.24.1 install honnef.co/go/tools/cmd/staticcheck@v0.6.1
4457
4558
- name: Run checks
4659
run: |

0 commit comments

Comments
 (0)