The will happen if you run protoc twice on a proto file and include two 
copy of the generated file in your programs. The proto in question is 
included as part of protobuf library, so you don't need to run protoc on 
that one by yourself (otherwise you may get the error you see).

On Tuesday, March 8, 2016 at 2:39:30 PM UTC-8, Randall McPherson wrote:
>
> I'm seeing this error when running generated go code for grpc: proto: 
> duplicate proto type registered: google.protobuf.Empty
>
> It also occurs for other 'standard' types in the google.protobuf namespace.
>
> The error log message appears to be coming from here: 
> https://github.com/golang/protobuf/blob/d20896fc31fb0e955e57970d61eb6eea054ff048/proto/properties.go#L834
>
> How can this be prevent this in generated code? I'm happy to provide more 
> details about the specific code if it helps. 
>

-- 
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 https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to