-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
e1e609e
commit 055f11b
Showing
1 changed file
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 ### | ||
|