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 staticcheck: ## Verifies `staticcheck` passes
@echo "+ $@" @echo "+ $@"
ifndef HAS_STATICCHECK ifndef HAS_STATICCHECK
wget https://github.com/dominikh/go-tools/releases/download/2019.1.1/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
chmod +x staticcheck_$(PLATFORM)_amd64 tar zxvf staticcheck_$(PLATFORM)_amd64.tar.gz
mkdir -p $(GOPATH)/bin mkdir -p $(GOPATH)/bin
mv staticcheck_$(PLATFORM)_amd64 $(GOPATH)/bin/staticcheck mv staticcheck/staticcheck $(GOPATH)/bin
endif endif
@staticcheck $(PACKAGES) @staticcheck $(PACKAGES)
@ -463,4 +463,4 @@ helm-package:
helm-deploy: helm-package helm-deploy: helm-package
@echo "+ $@" @echo "+ $@"
helm repo index chart/ --url https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/ helm repo index chart/ --url https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/
cd chart/ && mv jenkins-operator-*.tgz jenkins-operator cd chart/ && mv jenkins-operator-*.tgz jenkins-operator