mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-29 12:17:48 +00:00
af57087245
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> |
||
---|---|---|
.. | ||
internal_gengo | ||
testdata | ||
annotation_test.go | ||
main.go |