Merge pull request #6607 from apparentlymart/make-fmt-nonvendor

build: "make fmt" to ignore vendor packages
This commit is contained in:
James Nugent 2016-05-11 10:51:51 -04:00
commit f0b39b6ced
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
TEST?=$$(go list ./... | grep -v /vendor/)
VETARGS?=-all
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
default: test vet
@ -80,7 +81,7 @@ generate:
@go fmt command/internal_plugin_list.go > /dev/null
fmt:
gofmt -w .
gofmt -w $(GOFMT_FILES)
fmtcheck:
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"