Install staticcheck from releases

This commit is contained in:
Tomasz Sęk 2019-04-15 22:07:21 +02:00
parent b36de96cc9
commit bea4ce0d39
No known key found for this signature in database
GPG Key ID: DC356D23F6A644D0
1 changed files with 4 additions and 1 deletions

View File

@ -175,7 +175,10 @@ HAS_STATICCHECK := $(shell which staticcheck)
staticcheck: ## Verifies `staticcheck` passes staticcheck: ## Verifies `staticcheck` passes
@echo "+ $@" @echo "+ $@"
ifndef HAS_STATICCHECK ifndef HAS_STATICCHECK
go get -u honnef.co/go/tools/cmd/staticcheck wget https://github.com/dominikh/go-tools/releases/download/2019.1.1/staticcheck_linux_amd64
chmod +x staticcheck_linux_amd64
mkdir -p $(HOME)/bin
mv staticcheck_linux_amd64 $(HOME)/bin/staticcheck
endif endif
@staticcheck $(PACKAGES) @staticcheck $(PACKAGES)