From 0321bd2d8f6b9a8d123f5a25747e18dab199b3da Mon Sep 17 00:00:00 2001 From: Carina Antunes <carina.oliveira.antunes@cern.ch> Date: Tue, 9 Jul 2024 12:01:29 +0200 Subject: [PATCH] [#99] Fix CI: pin setup-envtest for golang 1.21 compatibility --- .gitlab-ci.yml | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5ef1a49..e95c537f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,5 +19,7 @@ variables: GoTest: stage: test image: golang:1.21 + variables: + ACK_GINKGO_DEPRECATIONS: 1.16.4 script: - make test diff --git a/Makefile b/Makefile index 165033a1..d4cf79a7 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ ENVTEST := $(GOBIN)/setup-envtest ENVTEST_K8S_VERSION = 1.21 # Download setup-envtest locally if necessary setup-envtest-bin: - go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest + go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.17 ls -l $(GOBIN) $(ENVTEST) use ${ENVTEST_K8S_VERSION} -- GitLab