From 0b0c9f4b6b9c3f64dcd2419347ac21055167bb36 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Thu, 19 Apr 2018 15:07:55 +0300 Subject: [PATCH] unused target didn't trigger an error for unused packages (#4101) Signed-off-by: Krasi Georgiev --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 7f7ef5f95..58789ad78 100644 --- a/Makefile.common +++ b/Makefile.common @@ -75,7 +75,7 @@ staticcheck: $(STATICCHECK) unused: $(GOVENDOR) @echo ">> running check for unused packages" - @$(GOVENDOR) list +unused + @$(GOVENDOR) list +unused | grep . && exit 1 || echo 'No unused packages' build: promu @echo ">> building binaries"