_scripts: update staticcheck version (#3839)
Update version of staticcheck and reenable for go1.23
This commit is contained in:
parent
bef326c6a5
commit
2a9af735d0
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user