Skip to content

Commit

Permalink
Download old version of staticcheck if using go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Feb 21, 2024
1 parent 28ead19 commit 59c53e6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions go/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
install-tools:
go install github.com/vakenbolt/[email protected]
go install google.golang.org/protobuf/cmd/[email protected]
go install honnef.co/go/tools/cmd/[email protected]
go install mvdan.cc/[email protected]
go install golang.org/x/tools/cmd/[email protected]
#go install github.com/vakenbolt/[email protected]
#go install google.golang.org/protobuf/cmd/[email protected]
#go install mvdan.cc/[email protected]
#go install golang.org/x/tools/cmd/[email protected]
#echo $$(go version | sed 's/.* go\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/')
go_minor=$$(go version | sed 's/.* go\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'); \
if [ "$$go_minor" -eq 18 ]; then staticcheck_version=v0.3.3; else staticcheck_version=latest; fi; \
go install honnef.co/go/tools/cmd/staticcheck@$$staticcheck_version

build: build-glide-core build-glide-client generate-protobuf
go build ./...
Expand Down

0 comments on commit 59c53e6

Please sign in to comment.