mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
cmd: set proper GOBIN
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
This commit is contained in:
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
.PHONY: generate license fix vet fmt test build tidy clean
|
.PHONY: generate license fix vet fmt test build tidy clean
|
||||||
|
|
||||||
GOBIN := $(shell go env GOPATH)/bin
|
GOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(GOBIN),)
|
||||||
|
GOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
$(GOBIN)/addlicense:
|
$(GOBIN)/addlicense:
|
||||||
go get github.com/google/addlicense
|
go get github.com/google/addlicense
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
MYGOBIN := $(shell go env GOPATH)/bin
|
MYGOBIN = $(shell go env GOBIN)
|
||||||
|
ifeq ($(MYGOBIN),)
|
||||||
|
MYGOBIN = $(shell go env GOPATH)/bin
|
||||||
|
endif
|
||||||
|
|
||||||
$(MYGOBIN)/gorepomod: usage.go
|
$(MYGOBIN)/gorepomod: usage.go
|
||||||
go install .
|
go install .
|
||||||
|
|||||||
Reference in New Issue
Block a user