Bazel: Make build tool chain forward compatible
Bazel 0.27 is going to flip incompatible Starlark flag:
--incompatible_string_join_requires_strings, see: [1] for
more details.
[1] https://github.com/bazelbuild/bazel/issues/7802
Bug: Issue 10930
Change-Id: I058ba29a006e0af665830f3408e82cef4cbb1660
diff --git a/tools/bzl/js.bzl b/tools/bzl/js.bzl
index ee96cce..d518575 100644
--- a/tools/bzl/js.bzl
+++ b/tools/bzl/js.bzl
@@ -59,9 +59,9 @@
def _run_npm_binary_str(ctx, tarball, args):
python_bin = ctx.which("python")
return " ".join([
- python_bin,
- ctx.path(ctx.attr._run_npm),
- ctx.path(tarball),
+ str(python_bin),
+ str(ctx.path(ctx.attr._run_npm)),
+ str(ctx.path(tarball)),
] + args)
def _bower_archive(ctx):