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.
This commit is contained in:
parent
ac8bbd571d
commit
78a9f8bfb4
3
Makefile
3
Makefile
|
@ -1,5 +1,6 @@
|
||||||
TEST?=$$(go list ./... | grep -v /vendor/)
|
TEST?=$$(go list ./... | grep -v /vendor/)
|
||||||
VETARGS?=-all
|
VETARGS?=-all
|
||||||
|
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
|
||||||
|
|
||||||
default: test vet
|
default: test vet
|
||||||
|
|
||||||
|
@ -80,7 +81,7 @@ generate:
|
||||||
@go fmt command/internal_plugin_list.go > /dev/null
|
@go fmt command/internal_plugin_list.go > /dev/null
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
gofmt -w .
|
gofmt -w $(GOFMT_FILES)
|
||||||
|
|
||||||
fmtcheck:
|
fmtcheck:
|
||||||
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
|
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
|
||||||
|
|
Loading…
Reference in New Issue