Ignore vendor files for go fmt command.
GOFMT ?= gofmt -s
-GOFILES := find . -name "*.go" -type f
+GOFILES := $(shell find . -name "*.go" -type f -not -path "./vendor/*")
.PHONY: fmt
fmt:
- $(GOFILES) | xargs $(GOFMT) -w
+ $(GOFMT) -w $(GOFILES)
.PHONY: build
build:
