From 34549b822f245bace940b403b9b0c7488dff0b94 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Mon, 22 Apr 2024 15:37:24 +0200 Subject: [PATCH] just install the thing --- Makefile | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 9fca777..015bba8 100644 --- a/Makefile +++ b/Makefile @@ -27,17 +27,4 @@ test: MOCKGEN := mockgen mockgen: ## Download conversion-gen locally if necessary. - $(call go-get-tool,$(MOCKGEN),github.com/golang/mock/mockgen) - -PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) -define go-get-tool -[ -f $(1) ] || { \ -set -e ;\ -TMP_DIR=$$(mktemp -d) ;\ -cd $$TMP_DIR ;\ -go mod init tmp ;\ -echo "Downloading $(2)" ;\ -GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\ -rm -rf $$TMP_DIR ;\ -} -endef + go get github.com/golang/mock/mockgen; go install github.com/golang/mock/mockgen;