File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -775,7 +775,8 @@ $(KIND_BIN): $(KIND) ## Build a local copy of kind.
775775$(RELEASE_NOTES_BIN ) : $(RELEASE_NOTES ) # # Build a local copy of release-notes.
776776
777777$(CONTROLLER_GEN ) : # Build controller-gen.
778- GOBIN=$(TOOLS_BIN_DIR ) $(GO_INSTALL ) $(CONTROLLER_GEN_PKG ) $(CONTROLLER_GEN_BIN ) $(CONTROLLER_GEN_VER )
778+ # controller-gen 0.13 cannot be built with Go >= 1.22. We have to pin it to 1.21.
779+ GOTOOLCHAIN=go1.21.11 GOBIN=$(TOOLS_BIN_DIR ) $(GO_INSTALL ) $(CONTROLLER_GEN_PKG ) $(CONTROLLER_GEN_BIN ) $(CONTROLLER_GEN_VER )
779780
780781# # We are forcing a rebuilt of conversion-gen via PHONY so that we're always using an up-to-date version.
781782# # We can't use a versioned name for the binary, because that would be reflected in generated files.
You can’t perform that action at this time.
0 commit comments