improve unused recipe for go modules

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2018-10-26 09:55:52 +02:00
parent 79e0fb5a3d
commit 71e0ec7512
1 changed files with 2 additions and 2 deletions

View File

@ -123,10 +123,10 @@ ifeq (,$(wildcard go.mod))
else
@echo ">> running check for unused/missing packages in go.mod"
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/"
GO111MODULE=$(GO111MODULE) $(GO) mod vendor
@git diff --exit-code
@git diff --exit-code -- go.sum go.mod vendor/
endif
.PHONY: common-build