js.bzl: Stop using incompatible join method
Bazel 0.27 flipped incompatible Starlark flag: --incompatible_string_join_requires_strings, see: [1] for more details. [1] https://github.com/bazelbuild/bazel/issues/7802 Change-Id: Id8588f65ba34a084d82f282da180fb8b35ef48ac
This commit is contained in:
@@ -91,7 +91,7 @@ def _bower_archive(ctx):
|
|||||||
|
|
||||||
out = ctx.execute(cmd)
|
out = ctx.execute(cmd)
|
||||||
if out.return_code:
|
if out.return_code:
|
||||||
fail("failed %s: %s" % (" ".join(cmd), out.stderr))
|
fail("failed %s: %s" % (cmd, out.stderr))
|
||||||
|
|
||||||
_bash(ctx, " && ".join([
|
_bash(ctx, " && ".join([
|
||||||
"TMP=$(mktemp -d || mktemp -d -t bazel-tmp)",
|
"TMP=$(mktemp -d || mktemp -d -t bazel-tmp)",
|
||||||
@@ -127,7 +127,7 @@ def _bash(ctx, cmd):
|
|||||||
cmd_list = ["bash", "-c", cmd]
|
cmd_list = ["bash", "-c", cmd]
|
||||||
out = ctx.execute(cmd_list)
|
out = ctx.execute(cmd_list)
|
||||||
if out.return_code:
|
if out.return_code:
|
||||||
fail("failed %s: %s" % (" ".join(cmd_list), out.stderr))
|
fail("failed %s: %s" % (cmd_list, out.stderr))
|
||||||
|
|
||||||
bower_archive = repository_rule(
|
bower_archive = repository_rule(
|
||||||
_bower_archive,
|
_bower_archive,
|
||||||
|
Reference in New Issue
Block a user