Commit 6782d57 1 parent 8a3bfaa commit 6782d57 Copy full SHA for 6782d57
File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,26 @@ jobs:
34
34
steps :
35
35
- uses : actions/checkout@v3
36
36
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
+
37
50
- uses : actions/setup-go@v4
38
51
with :
39
- go-mod-file : ' go.mod '
52
+ go-version : ' 1.24.1 '
40
53
41
54
- name : Install staticcheck
42
55
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
44
57
45
58
- name : Run checks
46
59
run : |
You can’t perform that action at this time.
0 commit comments