Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade protobuf to cosmos sdk v0.50 #19

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: proto-format proto-lint proto-gen format lint test-unit build local-image test-e2e
.PHONY: proto-format proto-lint proto-breaking proto-gen format lint test-unit build local-image test-e2e
all: proto-all format lint test-unit build local-image test-e2e

###############################################################################
Expand Down Expand Up @@ -31,9 +31,10 @@ lint:
### Protobuf ###
###############################################################################

BUF_VERSION=1.32
BUF_VERSION=1.42
BUILDER_VERSION=0.15.1

proto-all: proto-format proto-lint proto-gen
proto-all: proto-format proto-lint proto-breaking proto-gen

proto-format:
@echo "🤖 Running protobuf formatter..."
Expand All @@ -44,7 +45,7 @@ proto-format:
proto-gen:
@echo "🤖 Generating code from protobuf..."
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \
aura-proto sh ./proto/generate.sh
ghcr.io/cosmos/proto-builder:$(BUILDER_VERSION) sh ./proto/generate.sh
@echo "✅ Completed code generation!"

proto-lint:
Expand All @@ -53,10 +54,11 @@ proto-lint:
bufbuild/buf:$(BUF_VERSION) lint
@echo "✅ Completed protobuf linting!"

proto-setup:
@echo "🤖 Setting up protobuf environment..."
@docker build --rm --tag aura-proto:latest --file proto/Dockerfile .
@echo "✅ Setup protobuf environment!"
proto-breaking:
@echo "🤖 Running protobuf breaking checks..."
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \
bufbuild/buf:$(BUF_VERSION) breaking --against "https://github.com/ondoprotocol/usdy-noble.git#branch=v1.0.0"
@echo "✅ Completed protobuf breaking checks!"

###############################################################################
### Testing ###
Expand Down
Loading
Loading