Skip to content

Commit cedfaeb

Browse files
committed
fix makefile not downloading tool updates
On-behalf-of: @SAP [email protected]
1 parent 280fca6 commit cedfaeb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,30 +156,42 @@ OPENSHIFT_GOIMPORTS := $(TOOLS_DIR)/openshift-goimports
156156

157157
.PHONY: kubectl
158158
kubectl: $(KUBECTL) ## Download kubectl locally if necessary.
159+
160+
.PHONY: $(KUBECTL)
159161
$(KUBECTL):
160162
@UNCOMPRESSED=true hack/download-tool.sh https://dl.k8s.io/$(KUBECTL_VERSION)/bin/$(shell go env GOOS)/$(shell go env GOARCH)/kubectl kubectl $(KUBECTL_VERSION) kubectl
161163

162164
.PHONY: kustomize
163165
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.
166+
167+
.PHONY: $(KUSTOMIZE)
164168
$(KUSTOMIZE):
165169
@GO_MODULE=true hack/download-tool.sh sigs.k8s.io/kustomize/kustomize/v5 kustomize $(KUSTOMIZE_VERSION)
166170

167171
.PHONY: envtest
168172
envtest: $(ENVTEST) ## Download setup-envtest locally if necessary.
173+
174+
.PHONY: $(ENVTEST)
169175
$(ENVTEST):
170176
@GO_MODULE=true hack/download-tool.sh sigs.k8s.io/controller-runtime/tools/setup-envtest setup-envtest $(ENVTEST_VERSION)
171177

172178
.PHONY: golangci-lint
173179
golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.
180+
181+
.PHONY: $(GOLANGCI_LINT)
174182
$(GOLANGCI_LINT):
175183
@hack/download-tool.sh https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_LINT_VERSION}/golangci-lint-${GOLANGCI_LINT_VERSION}-$(shell go env GOOS)-$(shell go env GOARCH).tar.gz golangci-lint $(GOLANGCI_LINT_VERSION)
176184

177185
.PHONY: reconciler-gen
178186
reconciler-gen: $(RECONCILER_GEN) ## Download reconciler-gen locally if necessary.
187+
188+
.PHONY: $(RECONCILER_GEN)
179189
$(RECONCILER_GEN):
180190
@GO_MODULE=true hack/download-tool.sh k8c.io/reconciler/cmd/reconciler-gen reconciler-gen $(RECONCILER_GEN_VER)
181191

182192
.PHONY: openshift-goimports
183193
openshift-goimports: $(OPENSHIFT_GOIMPORTS) ## Download openshift-goimports locally if necessary.
194+
195+
.PHONY: $(OPENSHIFT_GOIMPORTS)
184196
$(OPENSHIFT_GOIMPORTS):
185197
@GO_MODULE=true hack/download-tool.sh github.com/openshift-eng/openshift-goimports openshift-goimports $(OPENSHIFT_GOIMPORTS_VER)

0 commit comments

Comments
 (0)