Skip to content

Commit 8e296ac

Browse files
authored
Merge pull request #60 from rollandf/envtest
fix: pin setup-envtest version
2 parents 4c4aa07 + b661473 commit 8e296ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ DOCKER_CMD ?= docker
2424
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
2525
ENVTEST_K8S_VERSION = 1.31.0
2626

27+
SETUP_ENVTEST_VERSION ?= release-0.21
28+
2729
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
2830
ifeq (,$(shell go env GOBIN))
2931
GOBIN=$(shell go env GOPATH)/bin
@@ -114,7 +116,7 @@ GOLANGCILINT_VERSION ?= v1.64.8
114116
.PHONY: envtest
115117
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
116118
$(ENVTEST): | $(LOCALBIN)
117-
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
119+
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@$(SETUP_ENVTEST_VERSION)
118120

119121
.PHONY: golangci-lint
120122
golangci-lint: $(GOLANGCILINT) ## Download golangci-lint locally if necessary.

0 commit comments

Comments
 (0)