protobuf-go/reflect
Joe Tsai aa45c46752 reflect/protoregistry: panic upon registration conflicts
In this CL, we switch the behavior of registration conflicts
from simply logging a warning to panicking.
This is a change that we have warned about ever since
the release of v1.20.0 in 2020-03-02.

For users that have not fixed their dependencies or are unable to,
they may set the GOLANG_PROTOBUF_REGISTRATION_CONFLICT environment
to "warn" in order to obtain the prior behavior of simply logging
and ignoring subsequent conflicts (first wins).

Change-Id: Ied7937f0fd5cb5d875858411714ebeb5ce145574
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/235298
Trust: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Damien Neil <dneil@google.com>
2020-10-16 22:00:47 +00:00
..
protodesc reflect/protodesc: fix round-tripping for package field 2020-10-07 22:44:53 +00:00
protoreflect reflect/protoreflect: improve source information usability 2020-07-23 21:50:46 +00:00
protoregistry reflect/protoregistry: panic upon registration conflicts 2020-10-16 22:00:47 +00:00