_scripts: update staticcheck version (#3839)

Update version of staticcheck and reenable for go1.23
This commit is contained in:
Alessandro Arzilli 2024-10-23 21:40:35 +02:00 committed by GitHub
parent bef326c6a5
commit 2a9af735d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

@ -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

@ -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")