Skip to content

Commit

Permalink
fix: fix make proto-gen (cosmos#13564)
Browse files Browse the repository at this point in the history
* fix: fix `make proto-gen`

* add changelog
  • Loading branch information
julienrbrt authored and JeancarloBarrios committed Sep 28, 2024
1 parent 6c9b574 commit 8ac999d
Show file tree
Hide file tree
Showing 4 changed files with 624 additions and 749 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

* [#13557](https://github.com/cosmos/cosmos-sdk/pull/#13557) - Add `GenSignedMockTx`. This can be used as workaround for #12437 revertion. `v0.46+` contains as well a `GenSignedMockTx` that behaves the same way.

### Bug Fixes

* [#13564](https://github.com/cosmos/cosmos-sdk/pull/13564) - Fix `make proto-gen`.

## v0.45.9 - 2022-10-14

ATTENTION:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ 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 $(containerProtoImage) \
sh ./scripts/protocgen.sh; fi
@go mod tidy

# This generates the SDK's custom wrapper for google.protobuf.Any. It should only be run manually when needed
proto-gen-any:
Expand Down
12 changes: 1 addition & 11 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ for dir in $proto_dirs; do
fi
fi

# generate baseapp test messages
(cd baseapp/testutil; buf generate)

# move proto files to the right places
cp -r github.com/cosmos/cosmos-sdk/* ./
rm -rf github.com

# UNTIL WE FIGURE OUT ABOUT COSMOSSDK.IO/API, DO NOT GENERATE PULSAR FILES FOR NEW MODULES
# unfortunately, there is no way to do it nicely directly in the buf.gen.pulsar.yaml file (https://github.com/bufbuild/buf/issues/224)
rm -r api/cosmos/bank/v2
rm -r api/cosmos/bank/module/v2

go mod tidy
rm -rf github.com
Loading

0 comments on commit 8ac999d

Please sign in to comment.