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 ###