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
157
157
# Download controller-gen locally if necessary
158
158
CONTROLLER_GEN = $(shell pwd) /bin/controller-gen
159
159
controller-gen :
160
- $(call go-get -tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/[email protected] )
160
+ $(call go-install -tool,$(CONTROLLER_GEN ) ,sigs.k8s.io/controller-tools/cmd/[email protected] )
161
161
162
162
# Download helm locally if necessary
163
163
HELM = /usr/local/bin/helm
@@ -177,16 +177,16 @@ rm -rf $(TMP_DIR) ;\
177
177
}
178
178
endef
179
179
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.
181
181
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
182
- define go-get -tool
182
+ define go-install -tool
183
183
@[ -f $(1 ) ] || { \
184
184
set -e ;\
185
185
TMP_DIR=$$(mktemp -d ) ;\
186
186
cd $$TMP_DIR ;\
187
187
go mod init tmp ;\
188
188
echo "Downloading $(2 ) " ;\
189
- GOBIN=$(PROJECT_DIR ) /bin go get $(2 ) ;\
189
+ GOBIN=$(PROJECT_DIR ) /bin go install $(2 ) ;\
190
190
rm -rf $$TMP_DIR ;\
191
191
}
192
192
endef
You can’t perform that action at this time.
0 commit comments