Skip to content

Commit e2ce970

Browse files
authored
Fix: Go static checks are failing with go version format mismatch with latest staticcheck package(#1633)
Go Run staticcheck is failing with the latest go/tools/cmd/staticcheck package https://github.com/dominikh/go-tools/releases/tag/2024.1 with an error - ``` go: honnef.co/go/tools/cmd/staticcheck@latest (in honnef.co/go/[email protected]): go.mod:3: invalid go version '1.22.1': must match format 1.23 ``` which seems to be not working with the current go version we use, we might need to upgrade go (reference golang/go#61888 (comment)) but for now restricting the static check package to use the last release before the latest i.e. 2023.1.7 https://github.com/dominikh/go-tools/releases/tag/2023.1.7
1 parent 449bf4c commit e2ce970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ jobs:
3636
- name: Run staticcheck
3737
run: |
3838
cd yb-voyager
39-
go install honnef.co/go/tools/cmd/staticcheck@latest
39+
go install honnef.co/go/tools/cmd/staticcheck@2023.1.7
4040
staticcheck ./...

0 commit comments

Comments
 (0)