pants icon indicating copy to clipboard operation
pants copied to clipboard

Support generation of ConnectRPC Go code

Open johansja opened this issue 11 months ago • 3 comments

Currently using ConnectRPC over gRPC for our RPC communication. It would be better if protobuf_source(s) target also support connect as an option in addition to grpc currently.

We are now using buf tool to generate and perform various checking. buf lint and buf fmt are already integrated with pants. We are also using buf generate today to generate these ConnectRPC related Go code.

johansja avatar Mar 18 '24 03:03 johansja

Currently using ConnectRPC over gRPC for our RPC communication. It would be better if protobuf_source(s) target also support connect as an option in addition to grpc currently.

We are now using buf tool to generate and perform various checking. buf lint and buf fmt are already integrated with pants. We are also using buf generate today to generate these ConnectRPC related Go code.

Hey @johansja, I think I need this as well and was about to pick this up, but do you have any more details about what you're looking for on your end?

ndellosa95 avatar Jul 19 '24 17:07 ndellosa95

Hi @ndellosa95 , currently I have moved on from Pants to Bazel due to some Go issues. But generally I still think Pants is better in term of developer experience. I was hoping for Pants to be able to just generate ConnectRPC related codes for both Go and Python to replace but generate

johansja avatar Jul 22 '24 00:07 johansja

Hi @ndellosa95 , currently I have moved on from Pants to Bazel due to some Go issues. But generally I still think Pants is better in term of developer experience. I was hoping for Pants to be able to just generate ConnectRPC related codes for both Go and Python to replace but generate

Cool so basically you just wanted to use buf generate as a code generator?

ndellosa95 avatar Jul 22 '24 15:07 ndellosa95