Add .gopath and generated code to the whitelist for gofmt.

pull/66/head
Dan Lorenc 2016-05-13 10:24:39 -07:00
parent a2be50b318
commit 3a0c1b0230
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ out/minikube: out/minikube-$(GOOS)-$(GOARCH)
out/localkube: .gopath
ifeq ($(GOOS),linux)
CGO_ENABLED=1 go build -v -ldflags="-s" -o $(BUILD_DIR)/localkube ./cmd/localkube
CGO_ENABLED=1 go build -ldflags="-s" -o $(BUILD_DIR)/localkube ./cmd/localkube
else
docker run -w /go/src/k8s.io/minikube -e GOPATH=/go -v $(shell pwd):/go/src/k8s.io/minikube golang:1.6 make out/localkube
endif

View File

@ -22,4 +22,4 @@ for TEST in $(find -name "*.go" | grep -v vendor | grep -v integration | grep _t
done
# Check gofmt
diff -u <(echo -n) <(gofmt -l -s . | grep -v vendor)
diff -u <(echo -n) <(gofmt -l -s . | grep -v "vendor\|\.gopath\|localkubecontents.go")