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
some of these files are importing some others (no circular dependency)
gazelle will put them in the same proto_library rule with a dependency to itself. The generated go_proto_library will have the same issue.
Take google/api/{http,annotations}.proto for instance. They both have option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations", and annotations.proto imports http.proto. gazelle will generate the follow code:
Add selfImportError, which is now returned by
RuleIndex.findRuleByImport and related methods when a rule imports
itself (which is common with protos).
Resolver methods treat this error the same as standardImportError: no
dependency is emitted.
Fixesbazelbuild#45
Add selfImportError, which is now returned by
RuleIndex.findRuleByImport and related methods when a rule imports
itself (which is common with protos).
Resolver methods treat this error the same as standardImportError: no
dependency is emitted.
Fixes#45
In case a package contains multiple proto files:
go_package
option, andgazelle will put them in the same proto_library rule with a dependency to itself. The generated go_proto_library will have the same issue.
Take
google/api/{http,annotations}.proto
for instance. They both haveoption go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"
, andannotations.proto
importshttp.proto
. gazelle will generate the follow code:The text was updated successfully, but these errors were encountered: