-
Notifications
You must be signed in to change notification settings - Fork 124
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
Proto-build fails for SDK 0.46 #318
Comments
|
Is there any estimation when support for version 0.46 can be expected? |
I had the same issue when trying to generate types for wasmd >= 0.29.0. It seems that both cosmos-sdk and wasmd have a |
So I got it to work for My changes can be found here: https://github.com/apollodao/cosmos-rust/tree/dev/generate-via-buf Unfourtunately it seems there are manual changes needed to |
I just got back from vacation. Will take a look at this (and cutting another release) next week |
Looking at @apollo-sturdy's branch it seems like I can try to put together a PR for that unless someone else is particularly interested. I can also merge #289 to unblock people until we have fully working automation again, at least if the test failures were fixed. |
I think what might make sense is to cut another release to get tendermint-rs upgraded, then circle back on this issue for the next release. That will let us focus on coordinating on ADR 012: Multi-Version Support as part of the upgrade. |
If that's of any help, I had a PR on Hermes/ibc-rs where I converted the proto builder used in that project to pull the dependencies as listed in Edit: initially pointed to a different PR informalsystems/hermes#2199, where more extensive use of buf was attempted. |
Those are both fairly large PRs. @mzabaluev can you point to some specific changes you think would be useful? FWIW #332 contains some initial steps but still needs a rebase cc @apollo-sturdy |
Look at the changes in ibc-proto-compiler. |
@mzabaluev it looks like you didn't use |
Yes, I used one of the auxiliary buf commands to fetch the dependencies at the commits listed in |
I opened #392 which switches to using It seems to work but I could definitely use help validating the changes and ensuring there's not anything missing. |
Oops, I realized #392 didn't actually update to SDK v0.46. Upon attempting to do that, I get the following error from
I see the following in cosmos-sdk's deps:
- buf.build/cosmos/cosmos-proto
- buf.build/cosmos/gogo-proto
- buf.build/googleapis/googleapis ...so I'm not sure why it isn't being pulled in? |
I split migrating to buf out into its own PR which doesn't attempt to upgrade the SDK version: #393 That should make it easier for others to experiment with the upgrade, namely figuring out the I'm curious if, ala #289, we might just need to vendor the relevant |
Okay, think I finally got it: #395 I was passing |
With tendermint-rs v0.32 about to ship, this is the last call on any feedback on the newly generated protos before the next release. |
The cosmos-sdk repo since v0.46.0 no longer includes a
third_party/proto
folder. Instead, it uses abuf.yml
config file to define dependencies. However, proto-build does not support this; executingcargo run
now results in the following error:Apparently, it cannot locate the gogoproto dependency.
I do not know a good solution to this. Any suggestion?
The text was updated successfully, but these errors were encountered: