From 488b71f8178cca32f11e6c80009d77eb49ac8ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Wanzenb=C3=B6ck?= Date: Mon, 2 Dec 2024 12:24:39 +0100 Subject: [PATCH] tools: fix envtest setup for compat tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Moritz Wanzenböck --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 13586632..f81f8316 100644 --- a/Makefile +++ b/Makefile @@ -230,8 +230,9 @@ set -e; \ package=$(2)@$(3) ;\ echo "Downloading $${package}" ;\ rm -f $(1) || true ;\ -GOBIN=$(LOCALBIN) go install $${package} ;\ -mv $(1) $(1)-$(3) ;\ +GOBIN=$(1)-tmp-bin go install $${package} ;\ +mv $(1)-tmp-bin/* $(1)-$(3) ;\ +rmdir $(1)-tmp-bin ;\ } ;\ ln -sf $(1)-$(3) $(1) endef