File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -87,23 +87,23 @@ docker-push:
8787# Download controller-gen locally if necessary
8888CONTROLLER_GEN = $(shell pwd) /bin/controller-gen
8989controller-gen :
90- $(call go-get -tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1)
90+ $(call go-install -tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1)
9191
9292# Download kustomize locally if necessary
9393KUSTOMIZE = $(shell pwd) /bin/kustomize
9494kustomize :
95- $(call go-get -tool,$(KUSTOMIZE ) ,sigs.k8s.io/kustomize/kustomize/v3@v3.8.7)
95+ $(call go-install -tool,$(KUSTOMIZE ) ,sigs.k8s.io/kustomize/kustomize/v3@v3.8.7)
9696
97- # go-get -tool will 'go get ' any package $2 and install it to $1.
97+ # go-install -tool will 'go install ' any package $2 and install it to $1.
9898PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
99- define go-get -tool
99+ define go-install -tool
100100@[ -f $(1 ) ] || { \
101101set -e ;\
102102TMP_DIR=$$(mktemp -d ) ;\
103103cd $$TMP_DIR ;\
104104go mod init tmp ;\
105105echo "Downloading $(2 ) " ;\
106- GOBIN=$(PROJECT_DIR ) /bin go get $(2 ) ;\
106+ GOBIN=$(PROJECT_DIR ) /bin go install $(2 ) ;\
107107rm -rf $$TMP_DIR ;\
108108}
109109endef
You can’t perform that action at this time.
0 commit comments