From 91e5751eacd5443728dba16d38d1136375c2b51a Mon Sep 17 00:00:00 2001 From: Ivo List Date: Tue, 12 Nov 2024 15:45:50 +0100 Subject: [PATCH] fix: Bazel version check (#2393) Version check needs to work on Bazel@HEAD as well and version later than Bazel 8. --- python/private/internal_config_repo.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/private/internal_config_repo.bzl b/python/private/internal_config_repo.bzl index e2fa8f6af1..7b6869e9a5 100644 --- a/python/private/internal_config_repo.bzl +++ b/python/private/internal_config_repo.bzl @@ -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"