Skip to content

Exclude files while using buf #21683

Open

Description

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

We need to find a way to exclude files when generating protos with buf.
For instance, we want bank protos v1beta1 and v2 to be in the same buf modules.
However, bank v2 will support handlers, and do not require grpc gateway file to be generated (#20798)

We should figure out a way how to exclude files from buf in the buf.yaml (https://github.com/cosmos/cosmos-sdk/pull/21659/files#diff-50e488c6e15cfeba84c617c17b6c9f0e04ea2d65a855c97e0d2fa74f130e15a7R6-R8).

I am not sure if it is supported, but we need it ref: bufbuild/buf#224 and #21659

Cosmos SDK Version

main

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

Metadata

Assignees

No one assigned

    Labels

    C: ProtoProto definition and proto release

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions