8000 fix: Bazel version check (#2393) · maffoo/rules_python@91e5751 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91e5751

Browse files
authored
fix: Bazel version check (bazel-contrib#2393)
Version check needs to work on Bazel@HEAD as well and version later than Bazel 8.
1 parent 576e6dc commit 91e5751

File tree

1 8000 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/private/internal_config_repo.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _internal_config_repo_impl(rctx):
6868
else:
6969
enable_pystar = False
7070

71-
if native.bazel_version.startswith("8."):
71+
if not native.bazel_version or int(native.bazel_version.split(".")[0]) >= 8:
7272
builtin_py_info_symbol = "None"
7373
builtin_py_runtime_info_symbol = "None"
7474
builtin_py_cc_link_params_provider = "None"

0 commit comments

Comments
 (0)
0