diff --git a/Makefile b/Makefile index e123156b..4523ce9a 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,9 @@ export PATH := $(TOOLS_D)/bin:$(PATH) GOLANGCI_LINT_VERSION = v1.54.2 GOLANGCI_LINT = $(TOOLS_D)/golangci-lint/$(GOLANGCI_LINT_VERSION)/golangci-lint +COLIMA_VERSION = v0.7.5 +COLIMA = $(TOOLS_D)/colima/$(COLIMA_VERSION)/colima + STAGE1_STACKER ?= ./stacker-dynamic STACKER_DEPS = $(GO_SRC) go.mod go.sum @@ -122,7 +125,7 @@ go-test: go tool cover -html coverage.txt -o $(HACK_D)/coverage.html .PHONY: download-tools -download-tools: $(GOLANGCI_LINT) $(REGCLIENT) $(ZOT) $(BATS) +download-tools: $(COLIMA) $(GOLANGCI_LINT) $(REGCLIENT) $(ZOT) $(BATS) $(GOLANGCI_LINT): @mkdir -p $(dir $@) @@ -130,6 +133,13 @@ $(GOLANGCI_LINT): @mkdir -p "$(TOOLS_D)/bin" ln -sf "$@" "$(TOOLS_D)/bin/" +$(COLIMA): + @mkdir -p $(dir $@) + # download binary + curl -Lo "$@" https://github.com/abiosoft/colima/releases/download/$(COLIMA_VERSION)/colima-$(shell uname)-$(shell uname -m) + @mkdir -p "$(TOOLS_D)/bin" + ln -sf "$@" "$(TOOLS_D)/bin/" + # dlbin is used with $(call dlbin,path,url) # it downloads a url to path and makes it executable. # it creates dest dir and atomically moves into place. t gets .pid