From fef3297b4564d0a6a8469e68f399147650b5c44e Mon Sep 17 00:00:00 2001 From: liyang Date: Sat, 28 Dec 2024 16:55:59 +0800 Subject: [PATCH] use go-install-tool install crd-ref-docs Signed-off-by: liyang --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d8ba59c..3723c2d 100644 --- a/Makefile +++ b/Makefile @@ -204,8 +204,9 @@ $(ENVTEST): $(LOCALBIN) $(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest,$(ENVTEST_VERSION)) .PHONY: crd-ref-docs -crd-ref-docs: ## Install crd-ref-docs. - GOBIN=$(LOCALBIN) go install github.com/elastic/crd-ref-docs@$(CRD_REF_DOCS_VERSION) +crd-ref-docs: $(CRD_REF_DOCS) ## Install crd-ref-docs tool, ref: https://github.com/elastic/crd-ref-docs. +$(CRD_REF_DOCS): $(LOCALBIN) + $(call go-install-tool,$(CRD_REF_DOCS),github.com/elastic/crd-ref-docs@$(CRD_REF_DOCS_VERSION)) .PHONY: golangci-lint golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.