11# !/usr/bin/env bash
22
3+ include hack/tools/Makefile.variables
34include embedded-bins/Makefile.variables
45include inttest/Makefile.variables
56
@@ -63,19 +64,17 @@ static/bin/k0s:
6364
6465static/helm/000-admin-console-$(admin_console_version ) .tgz : helm
6566 @mkdir -p static/helm
66- helm pull oci://registry.replicated.com/library/admin-console --version=$(admin_console_version )
67+ $( HELM ) pull oci://registry.replicated.com/library/admin-console --version=$(admin_console_version )
6768 mv admin-console-$(admin_console_version ) .tgz static/helm/000-admin-console-$(admin_console_version ) .tgz
6869
69- # #@ Development
70+ HELM = $(BIN_DIR ) /helm
71+ .PHONY : helm
72+ helm :
73+ @mkdir -p $(BIN_DIR )
74+ curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | \
75+ DESIRED_VERSION=v$(helm_version ) HELM_INSTALL_DIR=$(BIN_DIR ) USE_SUDO=false bash
7076
71- GOLANGCI_LINT = $(BIN_DIR ) /golangci-lint
72- .PHONY : golangci-lint
73- golangci-lint :
74- @[ -f $( GOLANGCI_LINT) ] || { \
75- set -e ; \
76- curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
77- sh -s -- -b $(shell dirname $(GOLANGCI_LINT ) ) ; \
78- }
77+ # #@ Development
7978
8079.PHONY : lint
8180lint : golangci-lint go.sum # # Run golangci-lint linter
@@ -97,11 +96,12 @@ $(smoketests): build
9796.PHONY : smoketests
9897smoketests : $(smoketests )
9998
100- .PHONY : helm
101- helm :
99+ GOLANGCI_LINT = $(BIN_DIR ) /golangci-lint
100+ .PHONY : golangci-lint
101+ golangci-lint :
102102 @mkdir -p $(BIN_DIR )
103- curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | \
104- DESIRED_VERSION=v $( helm_version ) HELM_INSTALL_DIR= $( BIN_DIR ) USE_SUDO=false bash
103+ curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
104+ sh -s -- -b $( shell dirname $( GOLANGCI_LINT ) ) v $( golangci-lint_version )
105105
106106go.sum : go.mod
107107 $(GO ) mod tidy && touch -c -- ' $@'
0 commit comments