提交 c41dac7a 编写于 作者: A Anders F Björklund

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.
上级 68c546ff
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册