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)),)
94
94
_SKIP_ARGS := $(foreach arg,$(strip $(GINKGO_SKIP ) ) ,-skip="$(arg ) ")
95
95
endif
96
96
97
+ # Helper function to get dependency version from go.mod
98
+ get_go_version = $(shell go list -m $1 | awk '{print $$2}')
99
+
97
100
#
98
101
# Binaries.
99
102
#
@@ -125,8 +128,8 @@ CONVERSION_GEN_BIN := conversion-gen
125
128
CONVERSION_GEN := $(abspath $(TOOLS_BIN_DIR ) /$(CONVERSION_GEN_BIN ) )
126
129
CONVERSION_GEN_PKG := k8s.io/code-generator/cmd/conversion-gen
127
130
128
- ENVSUBST_VER := v2.0.0-20210730161058-179042472c46
129
131
ENVSUBST_BIN := envsubst
132
+ ENVSUBST_VER := $(call get_go_version,github.com/drone/envsubst/v2)
130
133
ENVSUBST := $(abspath $(TOOLS_BIN_DIR ) /$(ENVSUBST_BIN ) -$(ENVSUBST_VER ) )
131
134
ENVSUBST_PKG := github.com/drone/envsubst/v2/cmd/envsubst
132
135
@@ -148,8 +151,8 @@ YQ_BIN := yq
148
151
YQ := $(abspath $(TOOLS_BIN_DIR ) /$(YQ_BIN ) -$(YQ_VER ) )
149
152
YQ_PKG := github.com/mikefarah/yq/v4
150
153
151
- GINGKO_VER := v2.5.0
152
154
GINKGO_BIN := ginkgo
155
+ GINGKO_VER := $(call get_go_version,github.com/onsi/ginkgo/v2)
153
156
GINKGO := $(abspath $(TOOLS_BIN_DIR ) /$(GINKGO_BIN ) -$(GINGKO_VER ) )
154
157
GINKGO_PKG := github.com/onsi/ginkgo/v2/ginkgo
155
158
You can’t perform that action at this time.
0 commit comments