Avoid lint warning with the generated translations

golint wants "Json" to be properly spelled as "JSON"

Note that the sed syntax varies between GNU and BSD.
pull/4685/head
Anders F Björklund 2019-07-04 22:50:49 +02:00
parent 68c546ff1d
commit c41dac7a21
1 changed files with 2 additions and 0 deletions

View File

@ -204,6 +204,8 @@ pkg/minikube/assets/assets.go: $(shell find deploy/addons -type f)
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/...
@#golint: Json should be JSON (compat sed)
@sed -i -e 's/Json/JSON/' $@ && rm -f ./-e
.PHONY: cross
cross: out/minikube-linux-$(GOARCH) out/minikube-darwin-amd64 out/minikube-windows-amd64.exe