Sorry to piggy back on this thread, on a related n...
# general
a
Sorry to piggy back on this thread, on a related note is there a way to offload protobuf codegen to buf
r
I am no expert, I just started using Pants, but I don't remember seeing
Buf
in the documentation. Someone recently pointed me to
adhoc_tools
for extending
Pants
. https://www.pantsbuild.org/stable/docs/ad-hoc-tools/integrating-new-tools-without-plugins
a
Yeah, i see buf is integrated for protobuf linting. Was wondering if generation using buf is also on the roadmap
r
Yeah, i see buf is integrated for protobuf linting. Was wondering if generation using buf is also on the roadmap
Interesting. I would wait for someone who knows better.
By the way why do you want to offload it to
buf
?
a
Some of our existing workflows already use it & also use it for Typescript stub generation - for which it looks like there is no support in pants yet. Trying to not overload the team is all I am sure i will also run into the bug you posted above!
h
As an OSS project, “the roadmap” is (within reason) whatever any contributor wants it to be, as long as they step up to do the work. So, assuming
buf
can be a drop-in replacement for
protoc
- I can’t imagine it would be too difficult to implement
👍 1
a
Fair enough, still learning the ropes with pants. Will take a deeper look how some backends are implemented.
h
what are the advantages of buf? or is it just that you’re already using it?
âž• 1