Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/proto: set filename in FileDescriptorProto when missing
Some old descriptors don't include a filename. When missing, set it from the filename provided to proto.RegisterFile. Fixes a number of warnings in the google.golang.org/protobuf tests stemming from the legacy generated files: WARNING: proto: file "" is already registered A future release of proto will panic on registration conflicts. Change-Id: I4f7c9e4a9ecb4d2a71073b0a373ec0c800e2ec66 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/184078 Reviewed-by: Joe Tsai <[email protected]>
- Loading branch information