Skip to content

Commit

Permalink
operator: Fix makefile dependencies for helm
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Wilson <[email protected]>
  • Loading branch information
aaronnw committed Sep 10, 2024
1 parent be50135 commit 2f6bb2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,13 @@ define go-install-tool
@[ -f $(1) ] || { \
set -e; \
package=$(2)@$(3) ;\
SRC="$$(echo "$(1)" | sed "s/-$(3)$$//")" ;\
DEST=$(1) ;\
echo "Downloading $${package}" ;\
GOBIN=$(LOCALBIN) go install $${package} ;\
mv "$$(echo "$(1)" | sed "s/-$(3)$$//")" $(1) ;\
if [ "$$SRC" != "$$DEST" ]; then \
mv -f $$SRC $$DEST ;\
fi ;\
}
endef

Expand All @@ -279,6 +283,7 @@ define helm-get-tool
@[ -f $(HELM) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
[ -d $(LOCALBIN) ] || mkdir -p $(LOCALBIN) ;\
cd $$TMP_DIR ;\
echo "Downloading Helm $(HELM_VERSION)" ;\
curl -sSL https://get.helm.sh/helm-$(HELM_VERSION)-linux-amd64.tar.gz -o helm.tar.gz ;\
Expand Down

0 comments on commit 2f6bb2b

Please sign in to comment.