forked from valkey-io/valkey-glide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download old version of staticcheck if using go 1.18
- Loading branch information
1 parent
28ead19
commit 59c53e6
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./... | ||
|