diff --git a/Makefile.common b/Makefile.common index 3ac8643a77..e29c7c10e0 100644 --- a/Makefile.common +++ b/Makefile.common @@ -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