Skip to content

buf_proto_breaking_test: How to obtain an "image" for parameter "against_input"? #150

Answered by aaliddell
sschnug asked this question in Q&A
Discussion options

You must be logged in to vote

You're right there's no way to create the images in this repo; I generally used the command at the bottom of that page as reference for testing IIRC. Creating a rule to automate that may be possible, since it's just calling protoc and we have that available.

However, we wouldn't be able to have rules for 'compare to last commit' etc, since that is beyond the control of Bazel. The rule would have to be a bazel run update_image type rule that you then commit the output as your 'known good' image to compare to.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aaliddell
Comment options

Answer selected by sschnug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request lang-buf Buf rules specific
2 participants