install latest versions of staticcheck & shadow

they tend to break each 6 months with a new go toolchain.
listing fixed versions probably causes more failures than always using the
latest versions.
This commit is contained in:
Mechiel Lukkien 2024-08-22 22:06:30 +02:00
parent 17346d6def
commit 7e7f6d48f1
No known key found for this signature in database

View file

@ -43,7 +43,7 @@ test-upgrade: build
# needed for "check" target # needed for "check" target
install-staticcheck: install-staticcheck:
go install honnef.co/go/tools/cmd/staticcheck@v0.4.7 go install honnef.co/go/tools/cmd/staticcheck@latest
check: check:
CGO_ENABLED=0 go vet -tags integration CGO_ENABLED=0 go vet -tags integration
@ -61,7 +61,7 @@ check:
# needed for check-shadow # needed for check-shadow
install-shadow: install-shadow:
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@v0.19.0 go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
# having "err" shadowed is common, best to not have others # having "err" shadowed is common, best to not have others
check-shadow: check-shadow: