This is an automated email from the ASF dual-hosted git repository.
nicknezis pushed a commit to branch nicknezis/bazel-2
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/nicknezis/bazel-2 by this push:
new 0d9654f Changed deprecated calls
0d9654f is described below
commit 0d9654f4baafbff019fe6a6d27c5b3a033b9b982
Author: Nicholas Nezis
AuthorDate: Tue Mar 31 07:09:31 2020 -0400
Changed deprecated calls
---
scripts/packages/self_extract_binary.bzl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/packages/self_extract_binary.bzl
b/scripts/packages/self_extract_binary.bzl
index a05b548..0119a4d 100644
--- a/scripts/packages/self_extract_binary.bzl
+++ b/scripts/packages/self_extract_binary.bzl
@@ -31,7 +31,7 @@ and a ZIP footer with the following entries:
def _self_extract_binary(ctx):
"""Implementation for the self_extract_binary rule."""
# This is a bit complex for stripping out timestamps
- zip_artifact = ctx.new_file(ctx.label.name + ".zip")
+ zip_artifact = ctx.actions.declare_file(ctx.label.name + ".zip")
touch_empty_files = [
"mkdir -p $(dirname ${tmpdir}/%s); touch ${tmpdir}/%s" % (f, f)
for f in ctx.attr.empty_files
@@ -45,7 +45,7 @@ def _self_extract_binary(ctx):
"cp %s ${tmpdir}/%s" % (r.path, r.basename)
for r in ctx.files.flatten_resources
]
- ctx.action(
+ ctx.actions.run_shell(
inputs = ctx.files.resources + ctx.files.flatten_resources,
outputs = [zip_artifact],
command = "\n".join([
@@ -57,7 +57,7 @@ def _self_extract_binary(ctx):
]),
mnemonic = "ZipBin",
)
- ctx.action(
+ ctx.actions.run_shell(
inputs = [ctx.file.launcher, zip_artifact],
outputs = [ctx.outputs.executable],
command = "\n".join([