From 71e0ec7512a68eb5f2defbb8a0c4e9112d9fe1e2 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 26 Oct 2018 09:55:52 +0200 Subject: [PATCH] improve unused recipe for go modules Signed-off-by: Simon Pasquier --- Makefile.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.common b/Makefile.common index 3ac8643a7..e29c7c10e 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