GOOS= and GOARCH=

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
pull/4802/head
Simon Pasquier 6 years ago
parent cc1b953394
commit ea18ea66b1

@ -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

Loading…
Cancel
Save