mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
improve unused recipe for go modules
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
79e0fb5a3d
commit
71e0ec7512
|
@ -123,10 +123,10 @@ ifeq (,$(wildcard go.mod))
|
||||||
else
|
else
|
||||||
@echo ">> running check for unused/missing packages in go.mod"
|
@echo ">> running check for unused/missing packages in go.mod"
|
||||||
GO111MODULE=$(GO111MODULE) $(GO) mod tidy
|
GO111MODULE=$(GO111MODULE) $(GO) mod tidy
|
||||||
@git diff --exit-code
|
@git diff --exit-code -- go.sum go.mod
|
||||||
@echo ">> running check for unused packages in vendor/"
|
@echo ">> running check for unused packages in vendor/"
|
||||||
GO111MODULE=$(GO111MODULE) $(GO) mod vendor
|
GO111MODULE=$(GO111MODULE) $(GO) mod vendor
|
||||||
@git diff --exit-code
|
@git diff --exit-code -- go.sum go.mod vendor/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: common-build
|
.PHONY: common-build
|
||||||
|
|
Loading…
Reference in a new issue