protobuf-go/cmd/protoc-gen-go
Joe Tsai af57087245 reflect/protoregistry: provide more informative errors for conflicts
The v2 implementation strictly enforces that there are no conflicts at
all in the protobuf namespace unlike the prior v1 implementation.
This change is almost certainly going to cause loud failures for users
that were unknowingly tolerating registration conflicts.

We modify internal/filedesc to be able to record the Go package path
that the file descriptor is declared within. This information is used
by reflect/protoregistry to print both the previous Go package that
registered some declaration, and current Go package that is attempting
to register some declaration.

Change-Id: Ib5eb21c1c98495afc51aa08bd4404bd9d64b5b57
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/186177
Reviewed-by: Damien Neil <dneil@google.com>
2019-07-15 20:39:24 +00:00
..
internal_gengo reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
testdata reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
annotation_test.go proto: move T->*T wrappers from internal/scalar to proto 2019-07-12 17:35:01 +00:00
main.go protogen, encoding/jsonpb, encoding/textpb: rename packages 2019-05-14 20:33:22 +00:00