Playing with pants to see if it can support my bui...
# general
d
Playing with pants to see if it can support my build needs. The project uses bufconnect for GRPC support. When I look at the codegen rules for grpc there is no support for non-standard plugins. Did I missing something?
g
I think that's a correct assessment, I can't find anything to support adding plugins. It however shouldn't be too complex; either. It looks like it replaces the
grpc
plugin, while using the same
protobuf
generator? I think the main issue (beyond doing the actual work for all languages Pants supports) is the UX. Would this be a replacement for
grpc=True
, or do we have
grpc=True
and
bufconnect=True
? Or do we make them an enum? What happens if you want a
connect
server and a
grpc
client? Can the sources coexist?
(Similar concerns would also arise in Rust where `prost`/`tonic` are more commonly used than classic
grpc
.)
@dazzling-sundown-55150 since you're likely more familiar with
bufconnect
than me, can you maybe post some more info about it to this issue? https://github.com/pantsbuild/pants/issues/16665. It seems to me like 3 new use-cases (twirp, bufconnect, prost) would be good coverage to test different use-cases. I've thought about tackling the rust issue myself ~soon, so maybe I can find a solution that covers more languages.