You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use ProtoParser to detect if a file with a proto extension is really a Protocol Buffers file. Sometimes someone uses a weak import and parsing fails. It would be nice if weak imports are supported.
A "weak" import means that the import is not required as a runtime dependency. Fields that depend on types defined in these imports can also be marked with a field option named weak.
Use of weak imports and weak field options is strongly discouraged and is supported by few target runtimes.
The text was updated successfully, but these errors were encountered:
I use
ProtoParser
to detect if a file with a proto extension is really a Protocol Buffers file. Sometimes someone uses a weak import and parsing fails. It would be nice if weak imports are supported.This is relevant parsing code is here.
I made pull request 3227 that implements the parsing. (not the linking)
Specification
A "weak" import means that the import is not required as a runtime dependency. Fields that depend on types defined in these imports can also be marked with a field option named
weak
.Use of weak imports and weak field options is strongly discouraged and is supported by few target runtimes.
The text was updated successfully, but these errors were encountered: