Skip to content

Commit

Permalink
Pin to a non-breaking version of setup-envtest
Browse files Browse the repository at this point in the history
kubernetes-sigs/controller-runtime#2720

The minimum required Go version for setup-envtes was bumped to 1.22,
breaking us. Pin to release-0.16, which doesn't use 1.22 yet. It uses
1.21, which is still higher than what we use, but back then Go didn't
enforce the version requirement yet.

Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik committed Mar 26, 2024
1 parent f69d598 commit af08481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.16

.PHONY: bundle
bundle: manifests kustomize ## Generate bundle manifests and metadata, then validate generated files.
Expand Down

0 comments on commit af08481

Please sign in to comment.