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;\
|
false;\
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@STATICCHECKOUT=$$(staticcheck -go 1.20 -checks all ./...); \
|
@STATICCHECKOUT=$$(staticcheck -go 1.22 -checks all ./...); \
|
||||||
if [ -z "$$STATICCHECKOUT" ]; then\
|
if [ -z "$$STATICCHECKOUT" ]; then\
|
||||||
echo "staticcheck: OK";\
|
echo "staticcheck: OK";\
|
||||||
else \
|
else \
|
||||||
@@ -57,7 +57,7 @@ EXECUTABLES = goimports staticcheck
|
|||||||
.PHONY: get_tools
|
.PHONY: get_tools
|
||||||
get_tools:
|
get_tools:
|
||||||
go install golang.org/x/tools/cmd/goimports@latest
|
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
|
.PHONY: check_tools
|
||||||
check_tools:
|
check_tools:
|
||||||
|
|||||||
Reference in New Issue
Block a user