From 1d73597287cfc3071aea2ed0a538a1eb5dc3ff91 Mon Sep 17 00:00:00 2001 From: Andrew Obuchowicz Date: Fri, 22 Mar 2024 13:08:45 -0400 Subject: [PATCH] fix: pin setup-envtest to v0.0.0-20240320141353-395cfc7486e6 Versions of envtest >= v0.0.0-20240322105421-affb96708000 require using go >= 1.22. As go 1.22 is only coming to Fedora 40 on April 16th 2024, we are pinning the version of env-test used for the DWO test suite to v0.0.0-20240320141353-395cfc7486e6 which requires go 1.20. Signed-off-by: Andrew Obuchowicz --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5a86ad939..faaedfe4a 100644 --- a/Makefile +++ b/Makefile @@ -243,6 +243,7 @@ $(LOCALBIN): ## Tool Binaries CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen CONTROLLER_GEN_VERSION = v0.6.1 +ENVTEST_VERSION = v0.0.0-20240320141353-395cfc7486e6 ENVTEST ?= $(LOCALBIN)/setup-envtest ENVTEST_K8S_VERSION = 1.24.2 @@ -256,4 +257,4 @@ $(CONTROLLER_GEN): $(LOCALBIN) .PHONY: envtest envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. $(ENVTEST): $(LOCALBIN) - test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest + test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(ENVTEST_VERSION)