From f03a1d19c150382df14f1106aea8aa1dbf1356f7 Mon Sep 17 00:00:00 2001 From: Max Jonas Werner Date: Mon, 25 Mar 2024 14:12:18 +0100 Subject: [PATCH] Pin envtest version [This commit](https://github.com/kubernetes-sigs/controller-runtime/commit/4c2442e4d743d172a2e0126a841ecd274fffc228) causes failures to install envtest, see https://github.com/kubernetes-sigs/controller-runtime/issues/2720 for details. This change pins envtest to the latest version that still works. Signed-off-by: Max Jonas Werner --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9d024880d1..5bd1e21bd6 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,8 @@ install-envtest: setup-envtest ENVTEST = $(shell pwd)/bin/setup-envtest .PHONY: envtest setup-envtest: ## Download envtest-setup locally if necessary. - $(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@latest) + # replace the commit SHA with 'latest' when https://github.com/kubernetes-sigs/controller-runtime/issues/2720 is fixed + $(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@c7e1dc9b5302d649d5531e19168dd7ea0013736d) # go-install-tool will 'go install' any package $2 and install it to $1. PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))