mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
1ac7b53cc5
Rather than panicking at init time due to registration failures, print a warning to stderr. Historically, the Go protobuf implementation has not been strict about registration conflicts, which has led users to unknowningly tolerating conflicts that may or may not expose themselvs as a bug. Registration conlicts now produce a log message: <<< 2019/07/17 17:36:42 WARNING: proto: file "path/to/example.proto" is already registered previously from: "example.com/company/example_proto" currently from: "example.com/user/example_proto" A future release will panic on registration conflicts. >>> Change-Id: I2d583f04977c8bc8cb6bbd33d239277690bbec54 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/186181 Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
testprotos | ||
registry_test.go | ||
registry.go |