From c77e87011460adab9d40e9b3ff46eb0a6c24fe5b Mon Sep 17 00:00:00 2001 From: Andrej Krejcir Date: Wed, 13 Nov 2024 12:34:35 +0100 Subject: [PATCH] makefile: use the same ginkgo version that is in go.mod Signed-off-by: Andrej Krejcir --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f986b6a16..df076e4f5 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,8 @@ unittest: generate lint fmt vet manifests metrics-rules-test lint-monitoring build-functests: go test -c ./tests -GINKGO_VERSION ?= v2.17.1 +GOMOD_PATH ?= ./go.mod +GINKGO_VERSION ?= $(shell grep -E '^\s*github\.com/onsi/ginkgo/v[0-9]+' $(GOMOD_PATH) | awk '{print $$2}') GINKGO_TIMEOUT ?= 2h .PHONY: ginkgo