Skip to content

Commit 6d78123

Browse files
SergejSalnikovcopybara-github
authored andcommitted
Resolve sources for py_proto_library deps
PiperOrigin-RevId: 712090894
1 parent c86c49d commit 6d78123

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

aspect/intellij_info_impl.bzl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,15 @@ def collect_py_info(target, ctx, semantics, ide_info, ide_info_file, output_grou
348348
py_launcher = None
349349

350350
sources = sources_from_target(ctx)
351+
352+
# collect sources for py_proto_library rule
353+
if hasattr(target[OutputGroupInfo], "python_proto_generated_sources"):
354+
generated_sources = [
355+
artifact_location(f)
356+
for f in target[OutputGroupInfo].python_proto_generated_sources.to_list()
357+
]
358+
sources = sources + generated_sources
359+
351360
to_build = target[PyInfo].transitive_sources
352361
args = getattr(ctx.rule.attr, "args", [])
353362
data_deps = getattr(ctx.rule.attr, "data", [])

0 commit comments

Comments
 (0)