Skip to content

Commit 055f11b

Browse files
refactor(templates): do not use proto-builder (#4496) (#4497)
(cherry picked from commit 63e1a7b) Co-authored-by: Julien Robert <[email protected]>
1 parent e1e609e commit 055f11b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

ignite/templates/app/files/Makefile.plush

+15-5
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,26 @@ install:
6363
### Protobuf ###
6464
##################
6565

66-
# Use this proto-image if you do not want to use Ignite for generating proto files
67-
protoVer=0.15.1
68-
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
69-
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
66+
# Use this target if you do not want to use Ignite for generating proto files
67+
GOLANG_PROTOBUF_VERSION=1.28.1
68+
GRPC_GATEWAY_VERSION=1.16.0
69+
GRPC_GATEWAY_PROTOC_GEN_OPENAPIV2_VERSION=2.20.0
70+
71+
proto-deps:
72+
@echo "Installing proto deps"
73+
@go install github.com/bufbuild/buf/cmd/[email protected]
74+
@go install github.com/cosmos/gogoproto/protoc-gen-gogo@latest
75+
@go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest
76+
@go install google.golang.org/protobuf/cmd/protoc-gen-go@v$(GOLANG_PROTOBUF_VERSION)
77+
@go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v$(GRPC_GATEWAY_VERSION)
78+
@go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v$(GRPC_GATEWAY_PROTOC_GEN_OPENAPIV2_VERSION)
79+
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
7080

7181
proto-gen:
7282
@echo "Generating protobuf files..."
7383
@ignite generate proto-go --yes
7484

75-
.PHONY: proto-gen
85+
.PHONY: proto-deps proto-gen
7686

7787
#################
7888
### Linting ###

0 commit comments

Comments
 (0)