mirror of https://github.com/status-im/consul.git
Merge pull request #1732 from hashicorp/pr/1716
Don't run `go vet` on vendor/
This commit is contained in:
commit
d31d50c45e
|
@ -43,7 +43,12 @@ vet:
|
|||
go get golang.org/x/tools/cmd/vet; \
|
||||
fi
|
||||
@echo "--> Running go tool vet $(VETARGS) ."
|
||||
@go tool vet $(VETARGS) . ; if [ $$? -eq 1 ]; then \
|
||||
@go list ./... \
|
||||
| grep -v ^github.com/hashicorp/consul/vendor/ \
|
||||
| cut -d '/' -f 4- \
|
||||
| xargs -n1 \
|
||||
go tool vet $(VETARGS) ;\
|
||||
if [ $$? -ne 0 ]; then \
|
||||
echo ""; \
|
||||
echo "Vet found suspicious constructs. Please check the reported constructs"; \
|
||||
echo "and fix them if necessary before submitting the code for reviewal."; \
|
||||
|
|
Loading…
Reference in New Issue