How do you do builds in your monorepo? If you adopt a tool like Bazel (bazel.build) you can use proto language build targets to automatically link language specific bindings to your neutral protobuf source files. It's really handy!
On Wed, Apr 10, 2019 at 12:12 PM Aleksandar Vidaković < [email protected]> wrote: > Hi all, > > I am new to protocol buffers and would like to get to know my options with > the technology. > > We have a monorepo with different services written in Java and Python and > would like to use protobuf to define messages that are exchanged among > these services. > > I thought to have a separate folder with common .proto files in the same > repo. > Question is how to distribute generated classes to appropriate services > from these .proto files. > > In the first run I though to do a compilation and copy the generated code > to each service, but to be honest, don't know the right way in long run. > Maybe having separate repo with proto files and do the compilation -> > packaging -> publish using language-specific artifact distribution > mechanism.. > > Would be so grateful for any input or idea, just to get out of the dark. :) > > Alex > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
