This repository was archived by the owner on Dec 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ all-images: operator-image e2e-image agent-image readiness-probe-image version-u
157157# Download controller-gen locally if necessary
158158CONTROLLER_GEN = $(shell pwd) /bin/controller-gen
159159controller-gen :
160- $(call go-get -tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1)
160+ $(call go-install -tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1)
161161
162162# Download helm locally if necessary
163163HELM = /usr/local/bin/helm
@@ -177,16 +177,16 @@ rm -rf $(TMP_DIR) ;\
177177}
178178endef
179179
180- # go-get -tool will 'go get ' any package $2 and install it to $1.
180+ # go-install -tool will 'go install ' any package $2 and install it to $1.
181181PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
182- define go-get -tool
182+ define go-install -tool
183183@[ -f $(1 ) ] || { \
184184set -e ;\
185185TMP_DIR=$$(mktemp -d ) ;\
186186cd $$TMP_DIR ;\
187187go mod init tmp ;\
188188echo "Downloading $(2 ) " ;\
189- GOBIN=$(PROJECT_DIR ) /bin go get $(2 ) ;\
189+ GOBIN=$(PROJECT_DIR ) /bin go install $(2 ) ;\
190190rm -rf $$TMP_DIR ;\
191191}
192192endef
You can’t perform that action at this time.
0 commit comments