Browse Source

GOOS= and GOARCH=

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

3
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

Loading…
Cancel
Save