Skip to content

Requiring usage of buf breaks Rust proto build #12963

Closed
@cbrit

Description

Summary of Bug

I'm hoping to PR an update to the cosmos-sdk-proto Rust crate to support v0.46.0. In the past, all third party proto package dependencies were present in the /third_party/ directory of the Cosmos SDK repo. However, now it seems with the latest version the gogo.proto and other deps are included by buf using the buf schema registry. This breaks the cosmos-sdk-proto/proto-build crate's build because it expects the third party proto dependencies to be present already. To my knowledge there isn't a Rust crate that can build protos with buf.

Workarounds I am considering include adding the files to the build crate as a dependency and copying them to third_party in the build, or having the build run a CLI command and use buf, but that seems hacky.

Wanted to raise it as a usability concern or at least get a recommended workaround?

Version

v0.46.0

Steps to Reproduce

Any attempt to build that doesn't use buf I suppose

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions