Skip to content

Commit

Permalink
refactor(templates): do not use proto-builder (#4496) (#4497)
Browse files Browse the repository at this point in the history
(cherry picked from commit 63e1a7b)

Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
mergify[bot] and julienrbrt authored Feb 7, 2025
1 parent e1e609e commit 055f11b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions ignite/templates/app/files/Makefile.plush
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
@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 ###
Expand Down

0 comments on commit 055f11b

Please sign in to comment.