Fix bazel 9 compatibility: * Update google_cloud_cpp to 3.3.0 to avoid an incompatible version of rules_foreign_cc which uses removed `--incompatible_use_toolchain_transition` * Force rules_go@0.60.0: even google_cloud_cpp@3.3.0 brings rules_go@0.58.3 which is still incompatible with bazel 9. * Update xz to 5.4.5.bcr.8 to avoid having to specify `--incompatible_disallow_empty_glob=false` (in bazel 8 and 9). * Update brotli, bzip2, and snappy, because old versions use `cc_library` or `cc_binary` as builtins which are no longer supported. * Actually update all other dependencies to their current versions. Some of them were already newer due to indirect dependencies, with warnings. Except for abseil-py: on my machine 2.4.0 is broken (cannot find "<Python.h>", in bazel 8 and 9). * Add 3.13 to supported Python versions. Building with `--copt=-Wa,--gsframe=no --host_copt=-Wa,--gsframe=no` might still be needed (in bazel 8 and 9) because of issues in Abseil which were not fixed yet. PiperOrigin-RevId: 903936571
diff --git a/MODULE.bazel b/MODULE.bazel index 7c03833..099b926 100644 --- a/MODULE.bazel +++ b/MODULE.bazel
@@ -10,25 +10,25 @@ ) bazel_dep( name = "abseil-py", - version = "2.1.0", + version = "2.1.0", # 2.4.0 broken? repo_name = "absl_py", ) bazel_dep( name = "bazel_skylib", - version = "1.7.1", + version = "1.9.0", ) bazel_dep( name = "boringssl", - version = "0.0.0-20240530-2db0eb3", + version = "0.20260413.0", ) bazel_dep( name = "brotli", - version = "1.1.0", + version = "1.2.0.bcr.1", repo_name = "org_brotli", ) bazel_dep( name = "bzip2", - version = "1.0.8", + version = "1.0.8.bcr.4", ) bazel_dep( name = "highwayhash", @@ -36,45 +36,53 @@ ) bazel_dep( name = "lz4", - version = "1.9.4", + version = "1.10.0.bcr.1", ) bazel_dep( name = "platforms", - version = "0.0.9", + version = "1.0.0", ) bazel_dep( name = "protobuf", - version = "33.2", + version = "34.1", repo_name = "com_google_protobuf", ) bazel_dep( name = "rules_cc", - version = "0.1.2", + version = "0.2.18", ) bazel_dep( name = "rules_python", - version = "0.36.0", + version = "2.0.0-rc3", ) bazel_dep( name = "snappy", - version = "1.2.0", + version = "1.2.2.bcr.3", ) bazel_dep( name = "xz", - version = "5.4.5.bcr.1", + version = "5.4.5.bcr.8", ) bazel_dep( name = "zlib", - version = "1.3.1.bcr.3", + version = "1.3.2", ) bazel_dep( name = "zstd", - version = "1.5.6", + version = "1.5.7.bcr.1", repo_name = "net_zstd", ) bazel_dep( name = "google_cloud_cpp", - version = "3.0.0-rc1", + version = "3.3.0", +) + +# Not used directly, but google_cloud_cpp@3.3.0 brings rules_go@0.58.3 which is +# incompatible with bazel 9. +bazel_dep( + name = "rules_go", + version = "0.60.0", + repo_name = None, ) # Configure hermetic Python toolchain @@ -84,6 +92,7 @@ "3.10", "3.11", "3.12", + "3.13", ] DEFAULT_PYTHON_VERSION = SUPPORTED_PYTHON_VERSIONS[-1]