Skip to content
Browse files

fix(bazel): allow ts_library interop with list-typed inputs (#30600)

_compile_action should take a list since we compute it within one node in the build graph
This needs to be cleaned up since Bazel is getting stricter with
disallowing iteration over depsets

PR Close #30600
  • Loading branch information...
alexeagle authored and jasonaden committed May 21, 2019
1 parent 2cd5294 commit 3125376ec1274002bb1f39e02fda53a6b67a5a71
Showing with 9 additions and 1 deletion.
  1. +9 −1 packages/bazel/src/ng_module.bzl
@@ -489,6 +489,14 @@ def _compile_action(ctx, inputs, outputs, dts_bundles_out, messages_out, tsconfi
# Give the Angular compiler all the user-listed assets
file_inputs = list(ctx.files.assets)

if (type(inputs) == type([])):
# inputs ought to be a list, but allow depset as well
# so that this can change independently of rules_typescript
# TODO(alexeagle): remove this case after update (July 2019)

if hasattr(ctx.attr, "node_modules"):

@@ -508,7 +516,7 @@ def _compile_action(ctx, inputs, outputs, dts_bundles_out, messages_out, tsconfi
# Collect the inputs and summary files from our deps
action_inputs = depset(
transitive = [inputs] + [
transitive = [
for dep in ctx.attr.deps
if hasattr(dep, "collect_summaries_aspect_result")

0 comments on commit 3125376

Please sign in to comment.
You can’t perform that action at this time.