From 79e0fb5a3d0bf29190f7786dfb223e8906883294 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 26 Oct 2018 09:49:20 +0200 Subject: [PATCH] Tidy up Makefile.common Signed-off-by: Simon Pasquier --- Makefile.common | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.common b/Makefile.common index e05bb6ae7..3ac8643a7 100644 --- a/Makefile.common +++ b/Makefile.common @@ -45,7 +45,9 @@ $(warning Some recipes may not work as expected as the current Go runtime is '$( else # This repository isn't using Go modules (yet). GOVENDOR := $(FIRST_GOPATH)/bin/govendor - GO111MODULE := auto + STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck + + unexport GO111MODULE endif PROMU := $(FIRST_GOPATH)/bin/promu pkgs = ./... @@ -156,7 +158,7 @@ promu: ifeq (,$(wildcard go.mod)) .PHONY: $(STATICCHECK) $(STATICCHECK): - GOOS= GOARCH= GO111MODULE=off $(GO) get -u honnef.co/go/tools/cmd/staticcheck + GOOS= GOARCH= $(GO) get -u honnef.co/go/tools/cmd/staticcheck .PHONY: $(GOVENDOR) $(GOVENDOR):