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

Generate ibc proto with buf #2199

Closed
wants to merge 16 commits into from

Conversation

mzabaluev
Copy link
Contributor

@mzabaluev mzabaluev commented May 9, 2022

This is an attempt to switch to buf and protoc-gen-prost for generating protobuf data structures in ibc_proto. As both cosmos-sdk and ibc-go already use buf, it's a way to piggyback on dependency management in the upstream buf.yaml files, rather than try to follow the intricacies of third-party vendoring locally.

Includes #2161.

Unresolved problems

  • Still manually specifying checkouts of cosmos-sdk and ibc-go.
  • ibc.mock falls out because we can't make a dependency on ibc-go,
    as it is not published on BSR. Publish the proto module on BSR cosmos/ibc-go#1345
  • Can't generate off an arbitrary commit on the proto source repositories,
    buf seems to only look on the default branch?

PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

dependabot bot and others added 16 commits April 19, 2022 21:45
Bumps [prost](https://github.com/tokio-rs/prost) from 0.9.0 to 0.10.1.
- [Release notes](https://github.com/tokio-rs/prost/releases)
- [Commits](tokio-rs/prost@v0.9.0...v0.10.1)

---
updated-dependencies:
- dependency-name: prost
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Fix the naming conflict in generated proto files caused by
tokio-rs/prost#505
Version 0.7.1 was yanked
Use buf.gen.yaml to specify protoc-gen-prost as the code generation
plugin.

Unsolved problems:
- Still need to manually synchronize checkouts of cosmos-sdk and ibc-go.
- ibc.mock falls out because we can't make a dependency on ibc-go,
  as it is not published on BSR.
- Can't just generate off any commit from the proto source repositories,
  buf seems to only find ones on the default branch?
@mzabaluev mzabaluev added A: help-wanted Admin: extra attention is needed, good for seniors proto A: blocked Admin: blocked by another (internal/external) issue or PR labels May 9, 2022
@mzabaluev
Copy link
Contributor Author

Superseded by #2213. This can be resurrected later when upstream buf modules are available.

@mzabaluev mzabaluev closed this May 13, 2022
@romac romac deleted the mikhail/generate-ibc-proto-with-buf branch November 22, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: blocked Admin: blocked by another (internal/external) issue or PR A: help-wanted Admin: extra attention is needed, good for seniors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants