From 4354fce2bb0d2f0da24cf18eb33c7b4a7734de25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1ko=20Hevery?= Date: Wed, 28 Nov 2018 13:47:56 -0800 Subject: [PATCH] build: Replace iteration over depsets with an explicit .to_list() call. (#27336) PR Close #27336 --- packages/bazel/src/ng_module.bzl | 2 +- packages/bazel/src/protractor/protractor_web_test.bzl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index 23f072c4c7..95c2e7707e 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -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", diff --git a/packages/bazel/src/protractor/protractor_web_test.bzl b/packages/bazel/src/protractor/protractor_web_test.bzl index 9a61b53329..0dc4784535 100644 --- a/packages/bazel/src/protractor/protractor_web_test.bzl +++ b/packages/bazel/src/protractor/protractor_web_test.bzl @@ -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 = []