Do not `go vet` vendor dependencies.

This commit is contained in:
Trevor Pounds 2016-02-12 13:51:59 -08:00 committed by James Nugent
parent 34b7665af0
commit 8e6d11fc5e
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ vet:
go get golang.org/x/tools/cmd/vet; \ go get golang.org/x/tools/cmd/vet; \
fi fi
@echo "go tool vet $(VETARGS) ." @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 ""; \
echo "Vet found suspicious constructs. Please check the reported constructs"; \ echo "Vet found suspicious constructs. Please check the reported constructs"; \
echo "and fix them if necessary before submitting the code for review."; \ echo "and fix them if necessary before submitting the code for review."; \