diff --git a/Makefile b/Makefile index b1cba7070..ddf2ef861 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,7 @@ vet: go get golang.org/x/tools/cmd/vet; \ fi @echo "go tool vet $(VETARGS) ." - @GO15VENDOREXPERIMENT=1 go tool vet $(VETARGS) . ; if [ $$? -eq 1 ]; then \ + @GO15VENDOREXPERIMENT=1 go tool vet $(VETARGS) $$(ls -d */ | grep -v vendor) ; if [ $$? -eq 1 ]; then \ echo ""; \ echo "Vet found suspicious constructs. Please check the reported constructs"; \ echo "and fix them if necessary before submitting the code for review."; \