aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs/pkg/pkg.bzl
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2017-02-23 00:32:59 +0000
committerGravatar Yue Gan <yueg@google.com>2017-02-23 11:32:06 +0000
commit4816cfa732b0770d5450bf04ec78dda3d4c4dfd0 (patch)
tree78d0a1b8bf45fab050a1408f60b8766e6ba956e9 /tools/build_defs/pkg/pkg.bzl
parentf2eacf021097c38154820c05e9ae6aeb01883ecc (diff)
Make bazel_bootstrap_distfile_test work on Windows
-- Change-Id: Ia6c94304fded25de48eda2060c5ec11368ff172c Reviewed-on: https://cr.bazel.build/8991 PiperOrigin-RevId: 148286095 MOS_MIGRATED_REVID=148286095
Diffstat (limited to 'tools/build_defs/pkg/pkg.bzl')
-rw-r--r--tools/build_defs/pkg/pkg.bzl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/build_defs/pkg/pkg.bzl b/tools/build_defs/pkg/pkg.bzl
index 3652d66dd4..b462fa3e66 100644
--- a/tools/build_defs/pkg/pkg.bzl
+++ b/tools/build_defs/pkg/pkg.bzl
@@ -45,11 +45,11 @@ def _pkg_tar_impl(ctx):
ctx.file_action(arg_file, "\n".join(args))
ctx.action(
- executable = build_tar,
- arguments = ["--flagfile=" + arg_file.path],
- inputs = ctx.files.files + ctx.files.deps + [arg_file],
+ command = "%s --flagfile=%s" % (build_tar.path, arg_file.path),
+ inputs = ctx.files.files + ctx.files.deps + [arg_file, build_tar],
outputs = [ctx.outputs.out],
- mnemonic="PackageTar"
+ mnemonic="PackageTar",
+ use_default_shell_env = True,
)