Skip to content

Commit

Permalink
fix: Bazel version check (#2393)
Browse files Browse the repository at this point in the history
Version check needs to work on Bazel@HEAD as well and version later than
Bazel 8.
  • Loading branch information
comius authored Nov 12, 2024
1 parent 576e6dc commit 91e5751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/private/internal_config_repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _internal_config_repo_impl(rctx):
else:
enable_pystar = False

if native.bazel_version.startswith("8."):
if not native.bazel_version or int(native.bazel_version.split(".")[0]) >= 8:
builtin_py_info_symbol = "None"
builtin_py_runtime_info_symbol = "None"
builtin_py_cc_link_params_provider = "None"
Expand Down

0 comments on commit 91e5751

Please sign in to comment.