+zhaoq, who works on Go grpc/protobuf.

On Monday, November 23, 2015 at 10:04:04 AM UTC-8, Zellyn wrote:
> Hi folks,
> A couple more questions about generating protocol buffers in Go.
> First, is there documentation somewhere that I'm missing?
See the Go proto developer guide 
here: https://developers.google.com/protocol-buffers/docs/reference/go-generated

> I feel like I should be RTFM'ing instead of peppering this group with 
> questions. Specifically, I'm looking for documentation of the semantics of 
> go_package (and normal package declarations) as well as details on the 
> commandline parameters protoc-gen-go accepts.
> My more specific question is whether how to run protoc for go is defined. 
> I got the impression from reading go_package-related bugs and pull requests 
> that it's advised you pass all files together to protoc. But I also see 
> explicit checks in the code and a comment that "The package name must agree 
> across all files being generated."
> So my conclusion is that you should pass all files that will end up in the 
> same package to protoc for a single run, and only those files. Is that 
> correct?
That's my impression as well. I don't work on Go protobuf though. +Qi 
should know this better.

> Is it documented somewhere? And is it considered a bug? (I ask this last, 
> because it makes the build/make process fragile: if someone changes a 
> package somewhere, the build process needs to change too.)
> Thanks,
> Zellyn

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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to