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

Merged
merged 5 commits into from
Sep 19, 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 license format lint test-unit build
.PHONY: proto-format proto-lint proto-breaking proto-gen license format lint test-unit build
all: proto-all format lint test-unit build

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

BUF_VERSION=1.35
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 @@ -48,7 +49,7 @@ proto-format:
proto-gen:
@echo "🤖 Generating code from protobuf..."
@docker run --rm --volume "$(PWD)":/workspace --workdir /workspace \
florin-proto sh ./proto/generate.sh
ghcr.io/cosmos/proto-builder:$(BUILDER_VERSION) sh ./proto/generate.sh
@echo "✅ Completed code generation!"

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

proto-setup:
@echo "🤖 Setting up protobuf environment..."
@docker build --rm --tag florin-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/monerium/module-noble.git#branch=v1.0.0"
@echo "✅ Completed protobuf breaking checks!"

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