tools: update staticcheck to a version compatible with Go v1.22

This commit is contained in:
Romain Bouyé
2024-05-06 18:49:36 +02:00
parent d0247d3b27
commit 268a6f5739

View File

@@ -34,7 +34,7 @@ static_check: check_tools
false;\
fi
@STATICCHECKOUT=$$(staticcheck -go 1.20 -checks all ./...); \
@STATICCHECKOUT=$$(staticcheck -go 1.22 -checks all ./...); \
if [ -z "$$STATICCHECKOUT" ]; then\
echo "staticcheck: OK";\
else \
@@ -57,7 +57,7 @@ EXECUTABLES = goimports staticcheck
.PHONY: get_tools
get_tools:
go install golang.org/x/tools/cmd/goimports@latest
go install honnef.co/go/tools/cmd/staticcheck@2023.1.5
go install honnef.co/go/tools/cmd/staticcheck@2023.1.7
.PHONY: check_tools
check_tools: