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"