Import bug - Message from Capitalized package is mistaken for Nested Type #87
Labels
bug
Something isn't working
has test
Has a (xfail) test that verifies the bugfix or feature
low priority
Milestone
The compiler does not distinguish the following two cases:
as they are both:
Protoc (as far as I've been able to figure out) reports the full type name, but not which part of that is the package, and which is the real type (
somepackage.Core: Message
vssomepackage: Core.Message
).In 99% of cases, this will not be a problem, because if users will follow the Protobuf Style Guide, packages will be
lowercase
, and typesCapitalCamelCase
, and the distinction can be made based on that.https://developers.google.com/protocol-buffers/docs/style#packages
https://developers.google.com/protocol-buffers/docs/style?hl=cs-CZ#message-and-field-names
Despite these style guides, there may be some users who are using Capitalized packages and for some reason cannot change the packages to lowercase.
Then, these packages will not be imported correctly from depending packages / messages.
The text was updated successfully, but these errors were encountered: