mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
tools: update staticcheck to a version compatible with Go v1.22
This commit is contained in:
4
Makefile
4
Makefile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user