Skip to content

Commit

Permalink
fix converison-verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jul 26, 2024
1 parent b1404a0 commit 6fa617f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,8 @@ $(CONVERSION_GEN): # Build conversion-gen from tools folder.
GOBIN=$(TOOLS_BIN_DIR) $(GO_INSTALL) $(CONVERSION_GEN_PKG) $(CONVERSION_GEN_BIN) $(CONVERSION_GEN_VER)

$(CONVERSION_VERIFIER): $(TOOLS_DIR)/go.mod # Build conversion-verifier from tools folder.
cd $(TOOLS_DIR); go build -tags=tools -o $(BIN_DIR)/$(CONVERSION_VERIFIER_BIN) sigs.k8s.io/cluster-api/hack/tools/conversion-verifier
# conversion-verifier 0.13 cannot be built with Go >= 1.22. We have to pin it to 1.21.
cd $(TOOLS_DIR); GOTOOLCHAIN=go1.21.11 go build -tags=tools -o $(BIN_DIR)/$(CONVERSION_VERIFIER_BIN) sigs.k8s.io/cluster-api/hack/tools/conversion-verifier

.PHONY: $(OPENAPI_GEN)
$(OPENAPI_GEN): # Build openapi-gen from tools folder.
Expand Down

0 comments on commit 6fa617f

Please sign in to comment.