Skip to content

Commit 27e1f16

Browse files
committed
add version to helm-docs binary name
Signed-off-by: Mateusz Puczyński <mati6095@gmail.com>
1 parent 99c79f0 commit 27e1f16

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

makelib/helm.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ HELM_INDEX := $(HELM_OUTPUT_DIR)/index.yaml
3737

3838
HELM_DOCS_VERSION ?= v1.14.2
3939
HELM_DOCS_ENABLED ?= false
40-
HELM_DOCS := $(TOOLS_HOST_DIR)/helm-docs
40+
HELM_DOCS := $(TOOLS_HOST_DIR)/helm-docs-$(HELM_DOCS_VERSION)
4141

4242
HELM_VALUES_TEMPLATE_SKIPPED ?= false
4343

@@ -218,5 +218,7 @@ help-special: helm.help
218218

219219
$(HELM_DOCS):
220220
@$(INFO) installing helm-docs
221-
@GOBIN=$(TOOLS_HOST_DIR) $(GOHOST) install github.com/norwoodj/helm-docs/cmd/helm-docs@$(HELM_DOCS_VERSION) || $(FAIL)
221+
@GOBIN=$(TOOLS_HOST_DIR)/tmp-helm-docs $(GOHOST) install github.com/norwoodj/helm-docs/cmd/helm-docs@$(HELM_DOCS_VERSION) || $(FAIL)
222+
@mv $(TOOLS_HOST_DIR)/tmp-helm-docs/helm-docs $(HELM_DOCS) || $(FAIL)
223+
@rm -fr $(TOOLS_HOST_DIR)/tmp-helm-docs || $(FAIL)
222224
@$(OK) installing helm-docs

0 commit comments

Comments
 (0)