From 055f11b95c0de93d894e397a007bfe08400fe895 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 7 Feb 2025 17:40:36 +0100 Subject: [PATCH] refactor(templates): do not use proto-builder (#4496) (#4497) (cherry picked from commit 63e1a7b14ff6bd4678c15e907f40dc977e7b8884) Co-authored-by: Julien Robert --- ignite/templates/app/files/Makefile.plush | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/ignite/templates/app/files/Makefile.plush b/ignite/templates/app/files/Makefile.plush index 54e9a72e80..690a806ab3 100644 --- a/ignite/templates/app/files/Makefile.plush +++ b/ignite/templates/app/files/Makefile.plush @@ -63,16 +63,26 @@ install: ### Protobuf ### ################## -# Use this proto-image if you do not want to use Ignite for generating proto files -protoVer=0.15.1 -protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) -protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) +# Use this target if you do not want to use Ignite for generating proto files +GOLANG_PROTOBUF_VERSION=1.28.1 +GRPC_GATEWAY_VERSION=1.16.0 +GRPC_GATEWAY_PROTOC_GEN_OPENAPIV2_VERSION=2.20.0 + +proto-deps: + @echo "Installing proto deps" + @go install github.com/bufbuild/buf/cmd/buf@v1.50.0 + @go install github.com/cosmos/gogoproto/protoc-gen-gogo@latest + @go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest + @go install google.golang.org/protobuf/cmd/protoc-gen-go@v$(GOLANG_PROTOBUF_VERSION) + @go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v$(GRPC_GATEWAY_VERSION) + @go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v$(GRPC_GATEWAY_PROTOC_GEN_OPENAPIV2_VERSION) + @go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest proto-gen: @echo "Generating protobuf files..." @ignite generate proto-go --yes -.PHONY: proto-gen +.PHONY: proto-deps proto-gen ################# ### Linting ###