get ginkgo version in Makefile from go.mod
@@ -8,6 +8,7 @@ KIND_VERSION=v0.11.1
HELM_VERSION=3.8.0
HELM_DOCS_VERSION=1.7.0
YQ_VERSION=4.18.1
+GINKGO_VERSION := $(shell awk '/github.com\/onsi\/ginkgo/ {print substr($$2, 2)}' go.mod)
SUDO=sudo
CURL=curl -Lsf
@@ -182,7 +183,7 @@ tools: install-kind ## Install development tools.
GOBIN=$(BINDIR) go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v$(PROTOC_GEN_GO_GRPC_VERSION)
GOBIN=$(BINDIR) go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v$(PROTOC_GEN_DOC_VERSION)
- GOBIN=$(BINDIR) go install github.com/onsi/ginkgo/ginkgo@latest
+ GOBIN=$(BINDIR) go install github.com/onsi/ginkgo/ginkgo@v$(GINKGO_VERSION)
GOBIN=$(BINDIR) go install github.com/norwoodj/helm-docs/cmd/helm-docs@v$(HELM_DOCS_VERSION)
curl -L -sS https://get.helm.sh/helm-v$(HELM_VERSION)-linux-amd64.tar.gz \
