fix(bazel): Allow ng_module to depend on targets w no deps (#24446)

PR Close #24446
This commit is contained in:
Alex Eagle 2018-06-12 08:55:16 -07:00 committed by Miško Hevery
parent 3ed2d75336
commit 282d3510cf
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ def _collect_summaries_aspect_impl(target, ctx):
srcs = ctx.rule.attr.srcs if hasattr(ctx.rule.attr, "srcs") else [] srcs = ctx.rule.attr.srcs if hasattr(ctx.rule.attr, "srcs") else []
# "re-export" rules should expose all the files of their deps # "re-export" rules should expose all the files of their deps
if not srcs: if not srcs and hasattr(ctx.rule.attr, "deps"):
for dep in ctx.rule.attr.deps: for dep in ctx.rule.attr.deps:
if (hasattr(dep, "angular")): if (hasattr(dep, "angular")):
results = depset(dep.angular.summaries, transitive = [results]) results = depset(dep.angular.summaries, transitive = [results])