protobuf-go/reflect/protodesc
Joe Tsai 687df2333b reflect/protodesc: fix round-tripping for package field
If a .proto file does not have a package statement,
then protoc will not populate the package field.
Emulate the same behavior for ToFileDescriptorProto.

Fixes golang/protobuf#1195

Change-Id: I617102e50c96f0fa1bac6a6bc4de1cc485750bb9
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/259899
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Joe Tsai <thebrokentoaster@gmail.com>
2020-10-07 22:44:53 +00:00
..
desc_init.go
desc_resolve.go
desc_validate.go
desc.go reflect/protoreflect: improve source information usability 2020-07-23 21:50:46 +00:00
file_test.go reflect/protodesc: fix round-tripping for package field 2020-10-07 22:44:53 +00:00
proto.go reflect/protodesc: fix round-tripping for package field 2020-10-07 22:44:53 +00:00