-
-
Notifications
You must be signed in to change notification settings - Fork 255
/
rules_shell_patch.diff
51 lines (42 loc) · 1.51 KB
/
rules_shell_patch.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff --git a/shell/private/sh_binary.bzl b/shell/private/sh_binary.bzl
index eec109a..f64848c 100644
--- a/shell/private/sh_binary.bzl
+++ b/shell/private/sh_binary.bzl
@@ -17,6 +17,6 @@
load(":sh_executable.bzl", "make_sh_executable_rule")
# For doc generation only.
-visibility("public")
+# visibility("public")
sh_binary = make_sh_executable_rule(executable = True)
diff --git a/shell/private/sh_executable.bzl b/shell/private/sh_executable.bzl
index 1306c80..7d06595 100644
--- a/shell/private/sh_executable.bzl
+++ b/shell/private/sh_executable.bzl
@@ -14,7 +14,7 @@
"""Common code for sh_binary and sh_test rules."""
-visibility(["//shell"])
+# visibility(["//shell"])
_SH_TOOLCHAIN_TYPE = "//shell:toolchain_type"
@@ -189,9 +189,9 @@ most build rules</a>.
"_windows_constraint": attr.label(
default = "@platforms//os:windows",
),
- } | extra_attrs,
- toolchains = [
- config_common.toolchain_type(_SH_TOOLCHAIN_TYPE, mandatory = False),
- ],
+ }, # | extra_attrs,
+ # toolchains = [
+ # config_common.toolchain_type(_SH_TOOLCHAIN_TYPE, mandatory = False),
+ # ],
**kwargs
)
diff --git a/shell/sh_binary.bzl b/shell/sh_binary.bzl
index 9e4a30d..8f12326 100644
--- a/shell/sh_binary.bzl
+++ b/shell/sh_binary.bzl
@@ -16,6 +16,6 @@
load("//shell/private:sh_binary.bzl", _sh_binary = "sh_binary")
-visibility("public")
+# visibility("public")
sh_binary = getattr(native, "sh_binary", _sh_binary)