File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ ifneq ($(strip $(GINKGO_SKIP)),)
9494_SKIP_ARGS := $(foreach arg,$(strip $(GINKGO_SKIP ) ) ,-skip="$(arg ) ")
9595endif
9696
97+ # Helper function to get dependency version from go.mod
98+ get_go_version = $(shell go list -m $1 | awk '{print $$2}')
99+
97100#
98101# Binaries.
99102#
@@ -125,8 +128,8 @@ CONVERSION_GEN_BIN := conversion-gen
125128CONVERSION_GEN := $(abspath $(TOOLS_BIN_DIR ) /$(CONVERSION_GEN_BIN ) )
126129CONVERSION_GEN_PKG := k8s.io/code-generator/cmd/conversion-gen
127130
128- ENVSUBST_VER := v2.0.0-20210730161058-179042472c46
129131ENVSUBST_BIN := envsubst
132+ ENVSUBST_VER := $(call get_go_version,github.com/drone/envsubst/v2)
130133ENVSUBST := $(abspath $(TOOLS_BIN_DIR ) /$(ENVSUBST_BIN ) -$(ENVSUBST_VER ) )
131134ENVSUBST_PKG := github.com/drone/envsubst/v2/cmd/envsubst
132135
@@ -148,8 +151,8 @@ YQ_BIN := yq
148151YQ := $(abspath $(TOOLS_BIN_DIR ) /$(YQ_BIN ) -$(YQ_VER ) )
149152YQ_PKG := github.com/mikefarah/yq/v4
150153
151- GINGKO_VER := v2.5.0
152154GINKGO_BIN := ginkgo
155+ GINGKO_VER := $(call get_go_version,github.com/onsi/ginkgo/v2)
153156GINKGO := $(abspath $(TOOLS_BIN_DIR ) /$(GINKGO_BIN ) -$(GINGKO_VER ) )
154157GINKGO_PKG := github.com/onsi/ginkgo/v2/ginkgo
155158
You can’t perform that action at this time.
0 commit comments