Skip to content

Add rule to create buf image #151

@aaliddell

Description

@aaliddell

Discussed in #150

Originally posted by sschnug October 2, 2021
Hi,

after having taken some first (successfull) experiments with this tool, i wanted to have a look at buf_proto_breaking_test.

I wonder how it's meant to be used.

The concept of some image was unclear to me, but buf's doc helped.

Now if i understand correctly, i need to prepare some image of my last commit (or better: cache them) and can then use buf_proto_breaking_test with my current commit based input protos against this image.

The strange thing, to me, it that i don't see any functionality within rules_proto_grpc to produce this image.

One probably could carefully follow bufs docs and create those, but i would be scared about being correct then as this tool here takes care of all those protoc invocations and generating images needed for this tasks also looks like one more protoc invocation.

Shouldn't there be a rule / feature whose task is to produce a image giving some compatible input as buf_proto_breaking_test uses?

Thanks for reading,
Sascha

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang-bufBuf rules specific

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions