Skip to content

Commit 37a384f

Browse files
committed
chore: drop bazel 5
1 parent 39052d7 commit 37a384f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

python/private/internal_config_repo.bzl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,9 @@ def _internal_config_repo_impl(rctx):
106106
shim_content = _PY_INTERNAL_SHIM
107107
py_internal_dep = '"@rules_python//tools/build_defs/python/private:py_internal_renamed_bzl"'
108108

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-
116109
rctx.file("BUILD", ROOT_BUILD_TEMPLATE.format(
117110
py_internal_dep = py_internal_dep,
118-
visibility = visibility,
111+
visibility = "@rules_python//:__subpackages__",
119112
))
120113
rctx.file("py_internal.bzl", shim_content)
121114

0 commit comments

Comments
 (0)