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 pfm v7.1.2 #408

Closed
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: proto gen
RafilxTenfen committed Jan 10, 2024
commit ad6193dd66d210dd4b65ec86c8c83118877c18dc
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -109,12 +109,14 @@ protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
containerProtoGen=proto-gen-$(protoVer)
containerProtoFmt=proto-fmt-$(protoVer)

# SDK
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

proto-all: proto-format proto-gen

proto-gen:
@echo "Generating Protobuf files"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
sh ./scripts/protocgen.sh; fi
@$(protoImage) sh ./scripts/protocgen.sh

proto-format:
@echo "Formatting Protobuf files"
3 changes: 1 addition & 2 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
set -eo pipefail

# get protoc executions
go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos 2>/dev/null
# go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos 2>/dev/null
RafilxTenfen marked this conversation as resolved.
Show resolved Hide resolved
RafilxTenfen marked this conversation as resolved.
Show resolved Hide resolved

# get cosmos sdk from github
# go get github.com/cosmos/cosmos-sdk 2>/dev/null
@@ -26,4 +26,3 @@ cd ..
# Note: Proto files are suffixed with the current binary version.
rm -rf github.com

go mod tidy -compat=1.19