Update to use go 1.13-built staticcheck

Fix the link
This commit is contained in:
Rui Chen 2019-09-28 14:34:25 -04:00
parent 648af20092
commit cd7e70df9c
1 changed files with 4 additions and 4 deletions

View File

@ -200,10 +200,10 @@ PLATFORM = $(shell echo $(UNAME_S) | tr A-Z a-z)
staticcheck: ## Verifies `staticcheck` passes
@echo "+ $@"
ifndef HAS_STATICCHECK
wget https://github.com/dominikh/go-tools/releases/download/2019.1.1/staticcheck_$(PLATFORM)_amd64
chmod +x staticcheck_$(PLATFORM)_amd64
wget -O staticcheck_$(PLATFORM)_amd64.tar.gz https://github.com/dominikh/go-tools/releases/download/2019.2.3/staticcheck_$(PLATFORM)_amd64.tar.gz
tar zxvf staticcheck_$(PLATFORM)_amd64.tar.gz
mkdir -p $(GOPATH)/bin
mv staticcheck_$(PLATFORM)_amd64 $(GOPATH)/bin/staticcheck
mv staticcheck/staticcheck $(GOPATH)/bin
endif
@staticcheck $(PACKAGES)