protobuf-go/cmd/protoc-gen-go/testdata
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
..
annotations reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
comments reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
extensions reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
fieldnames reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
import_public reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
imports reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
issue780_oneof_conflict reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
nopackage reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
proto2 reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
proto3 reflect/protoregistry: provide more informative errors for conflicts 2019-07-15 20:39:24 +00:00
gen_test.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
go.mod internal/fileinit: remove package 2019-06-20 19:35:23 +00:00
registry_test.go cmd/protoc-gen-go/testdata: add registry test 2019-07-08 20:23:18 +00:00