-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: update staticcheck version (#3533)
Update staticcheck version and re-enable TestStaticcheck on Go 1.22.
- Loading branch information
Showing
2 changed files
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ export GOPATH | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | ||
go version | ||
if [ "$arch" != "ppc64le" ]; then | ||
go install honnef.co/go/tools/cmd/[email protected] || true | ||
go install honnef.co/go/tools/cmd/[email protected].6 || true | ||
fi | ||
|
||
uname -a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1310,9 +1310,6 @@ func TestStaticcheck(t *testing.T) { | |
if err != nil { | ||
t.Skip("staticcheck not installed") | ||
} | ||
if goversion.VersionAfterOrEqual(runtime.Version(), 1, 22) { | ||
t.Skip("broken with [email protected]") | ||
} | ||
// default checks minus SA1019 which complains about deprecated identifiers, which change between versions of Go. | ||
args := []string{"-tests=false", "-checks=all,-SA1019,-ST1000,-ST1003,-ST1016,-S1021,-ST1023", "github.com/go-delve/delve/..."} | ||
// * SA1019 is disabled because new deprecations get added on every version | ||
|