From bea4ce0d394be1ee99bb48ef52ad6512f00198f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20S=C4=99k?= Date: Mon, 15 Apr 2019 22:07:21 +0200 Subject: [PATCH] Install staticcheck from releases --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c6d1c67..21051624 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,10 @@ HAS_STATICCHECK := $(shell which staticcheck) staticcheck: ## Verifies `staticcheck` passes @echo "+ $@" 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 @staticcheck $(PACKAGES)