From 78a9f8bfb4d9a5ede469f52ace538c10ed67df7a Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 10 May 2016 15:40:02 -0700 Subject: [PATCH] build: "make fmt" to ignore vendor packages Several of our vendered dependencies are not gofmt-compliant, but we don't want to fix that since the vendored code is supposed to exactly match upstream. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 624d728ef..857d6c8ff 100644 --- a/Makefile +++ b/Makefile @@ -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'"