Skip to content

Commit

Permalink
scripts: pin staticcheck package
Browse files Browse the repository at this point in the history
The last released version of staticcheck does not yet support Go
1.21.0, so pin to the latest commit.

When a version is released that supports Go 1.21.0, we should pin to
that instead.
  • Loading branch information
kmoe committed Aug 30, 2023
1 parent de64457 commit a49522d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/staticcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ packages=$(go list ./... | egrep -v ${skip})
# may result in bugs. We also disable fucntion deprecation checks (SA1019)
# because our policy is to update deprecated calls locally while making other
# nearby changes, rather than to make cross-cutting changes to update them all.
go run honnef.co/go/tools/cmd/staticcheck -checks 'all,-SA1019,-ST*' ${packages}
go run honnef.co/go/tools/cmd/staticcheck@ad5ca31ff2216a6e1f0ac2adf427ad54173b8341 -checks 'all,-SA1019,-ST*' ${packages}

0 comments on commit a49522d

Please sign in to comment.