-
Hi, after having taken some first (successfull) experiments with this tool, i wanted to have a look at 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 The strange thing, to me, it that i don't see any functionality within 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 Thanks for reading, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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.