mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
GOOS= and GOARCH=
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
cc1b953394
commit
ea18ea66b1
|
@ -111,8 +111,7 @@ common-staticcheck: $(STATICCHECK)
|
||||||
ifdef STATICCHECK
|
ifdef STATICCHECK
|
||||||
GO111MODULE=off $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs)
|
GO111MODULE=off $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs)
|
||||||
else
|
else
|
||||||
GO111MODULE=$(GO111MODULE) $(GO) list -m honnef.co/go/tools
|
GOOS= GOARCH= GO111MODULE=$(GO111MODULE) $(GO) run $(GOOPTS) honnef.co/go/tools/cmd/staticcheck -ignore "$(STATICCHECK_IGNORE)" -checks "SA*" $(pkgs)
|
||||||
GO111MODULE=$(GO111MODULE) $(GO) run $(GOOPTS) honnef.co/go/tools/cmd/staticcheck -ignore "$(STATICCHECK_IGNORE)" -checks "SA*" $(pkgs)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: common-unused
|
.PHONY: common-unused
|
||||||
|
|
Loading…
Reference in a new issue