Make the go-bindata generated code pass gofmt -s
But don't abort the build if gofmt is not installed.pull/4685/head
parent
c41dac7a21
commit
801cd01ada
2
Makefile
2
Makefile
|
@ -200,10 +200,12 @@ test: pkg/minikube/assets/assets.go pkg/minikube/translate/translations.go
|
|||
pkg/minikube/assets/assets.go: $(shell find deploy/addons -type f)
|
||||
which go-bindata || GO111MODULE=off GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...
|
||||
PATH="$(PATH):$(GOPATH)/bin" go-bindata -nomemcopy -o pkg/minikube/assets/assets.go -pkg assets deploy/addons/...
|
||||
-gofmt -s -w $@
|
||||
|
||||
pkg/minikube/translate/translations.go: $(shell find translations/ -type f)
|
||||
which go-bindata || GO111MODULE=off GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...
|
||||
PATH="$(PATH):$(GOPATH)/bin" go-bindata -nomemcopy -o pkg/minikube/translate/translations.go -pkg translate translations/...
|
||||
-gofmt -s -w $@
|
||||
@#golint: Json should be JSON (compat sed)
|
||||
@sed -i -e 's/Json/JSON/' $@ && rm -f ./-e
|
||||
|
||||
|
|
Loading…
Reference in New Issue