Skip to content

Commit 27a9e7a

Browse files
committed
fix(2.x): alias COPY_EXECUTION_REQUIREMENTS to bazel_lib
1 parent e56aa70 commit 27a9e7a

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

lib/private/copy_common.bzl

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
"Helpers for copy rules"
22

3+
load(
4+
"@bazel_lib//lib/private:copy_common.bzl",
5+
_COPY_EXECUTION_REQUIREMENTS = "COPY_EXECUTION_REQUIREMENTS",
6+
)
7+
38
# Hints for Bazel spawn strategy
4-
COPY_EXECUTION_REQUIREMENTS = {
5-
# ----------------+-----------------------------------------------------------------------------
6-
# no-sandbox | Results in the action or test never being sandboxed; it can still be cached
7-
# | or run remotely.
8-
# ----------------+-----------------------------------------------------------------------------
9-
# See https://bazel.google.cn/reference/be/common-definitions?hl=en&authuser=0#common-attributes
10-
#
11-
# Sandboxing for this action is wasteful since there is a 1:1 mapping of input file/directory to
12-
# output file/directory so little room for non-hermetic inputs to sneak in to the execution.
13-
"no-sandbox": "1",
14-
}
9+
COPY_EXECUTION_REQUIREMENTS = _COPY_EXECUTION_REQUIREMENTS

0 commit comments

Comments
 (0)