We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39052d7 commit 37a384fCopy full SHA for 37a384f
python/private/internal_config_repo.bzl
@@ -106,16 +106,9 @@ def _internal_config_repo_impl(rctx):
106
shim_content = _PY_INTERNAL_SHIM
107
py_internal_dep = '"@rules_python//tools/build_defs/python/private:py_internal_renamed_bzl"'
108
109
- # Bazel 5 doesn't support repository visibility, so just use public
110
- # as a stand-in
111
- if native.bazel_version.startswith("5."):
112
- visibility = "//visibility:public"
113
- else:
114
- visibility = "@rules_python//:__subpackages__"
115
-
116
rctx.file("BUILD", ROOT_BUILD_TEMPLATE.format(
117
py_internal_dep = py_internal_dep,
118
- visibility = visibility,
+ visibility = "@rules_python//:__subpackages__",
119
))
120
rctx.file("py_internal.bzl", shim_content)
121
0 commit comments