Skip to content

Commit

Permalink
build: Replace iteration over depsets with an explicit .to_list() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Nov 28, 2018
1 parent 39e426c commit b63b200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bazel/src/ng_module.bzl
Expand Up @@ -158,7 +158,7 @@ def _expected_outs(ctx):

if short_path.endswith(".ts") and not short_path.endswith(".d.ts"):
basename = short_path[len(package_prefix):-len(".ts")]
if include_ng_files and (len(factory_basename_set) == 0 or basename in factory_basename_set):
if include_ng_files and (len(factory_basename_set.to_list()) == 0 or basename in factory_basename_set.to_list()):
devmode_js = [
".ngfactory.js",
".ngsummary.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/bazel/src/protractor/protractor_web_test.bzl
Expand Up @@ -36,7 +36,7 @@ def _protractor_web_test_impl(ctx):

specs = [
expand_path_into_runfiles(ctx, f.short_path)
for f in files
for f in files.to_list()
]

configuration_sources = []
Expand Down Expand Up @@ -346,3 +346,4 @@ def protractor_web_test_suite(
timeout = timeout,
visibility = visibility,
)

0 comments on commit b63b200

Please sign in to comment.