From ea18ea66b128a5b54b01ab3efd26dd22e1614891 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Thu, 25 Oct 2018 17:15:36 +0200 Subject: [PATCH] GOOS= and GOARCH= Signed-off-by: Simon Pasquier --- Makefile.common | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.common b/Makefile.common index f09c2efe9..f3f13f577 100644 --- a/Makefile.common +++ b/Makefile.common @@ -111,8 +111,7 @@ common-staticcheck: $(STATICCHECK) ifdef STATICCHECK GO111MODULE=off $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs) else - GO111MODULE=$(GO111MODULE) $(GO) list -m honnef.co/go/tools - GO111MODULE=$(GO111MODULE) $(GO) run $(GOOPTS) honnef.co/go/tools/cmd/staticcheck -ignore "$(STATICCHECK_IGNORE)" -checks "SA*" $(pkgs) + GOOS= GOARCH= GO111MODULE=$(GO111MODULE) $(GO) run $(GOOPTS) honnef.co/go/tools/cmd/staticcheck -ignore "$(STATICCHECK_IGNORE)" -checks "SA*" $(pkgs) endif .PHONY: common-unused