Skip to content

Commit

Permalink
_scripts: update staticcheck version (#3839)
Browse files Browse the repository at this point in the history
Update version of staticcheck and reenable for go1.23
  • Loading branch information
aarzilli authored Oct 23, 2024
1 parent bef326c commit 2a9af73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion _scripts/test_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export GOPATH
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
go version
if [ "$arch" != "ppc64le" ]; then
go install honnef.co/go/tools/cmd/staticcheck@2023.1.6 || true
go install honnef.co/go/tools/cmd/staticcheck@2024.1.1 || true
fi

uname -a
Expand Down
3 changes: 0 additions & 3 deletions cmd/dlv/dlv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1410,9 +1410,6 @@ func TestVersion(t *testing.T) {
}

func TestStaticcheck(t *testing.T) {
if goversion.VersionAfterOrEqual(runtime.Version(), 1, 23) {
t.Skip("staticcheck does not support go1.23 yet")
}
_, err := exec.LookPath("staticcheck")
if err != nil {
t.Skip("staticcheck not installed")
Expand Down

0 comments on commit 2a9af73

Please sign in to comment.