From 09d9351a963274901d479b28b550e43576fc0486 Mon Sep 17 00:00:00 2001 From: Hiroyuki Komatsu Date: Fri, 21 Feb 2025 03:45:23 +0000 Subject: [PATCH] Rollback the versions of Abseil, Protobuf and Googletest. * To fix build failures on Windows with Bazel. + https://github.com/protocolbuffers/protobuf/issues/20331 * abseil-cpp: 20240722.0.bcr.2 * re2: 2024-07-02.bcr.1 * protobuf: 29.3 * googletest: 1.15.2 PiperOrigin-RevId: 729343696 --- src/MODULE.bazel | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/src/MODULE.bazel b/src/MODULE.bazel index d83774752..5bd2b5c17 100644 --- a/src/MODULE.bazel +++ b/src/MODULE.bazel @@ -2,28 +2,46 @@ # To use Bzlmod, you need to specify --enable_bzlmod to the Bazel command or modify .bazelrc. module(name = "mozc") -# absl-cpp: 2025-02-04 +# absl-cpp: 2024-08-02 # https://github.com/abseil/abseil-cpp +# +# abseil-cpp with patches for Bazel 8.0.0 is used instead of the local Abseil in third_party/. +# Otherwise, `bazel fetch` will fail with the error: "cc_configure_extension no longer available". +# References +# * https://github.com/bazelbuild/bazel/issues/24426 +# * https://github.com/bazelbuild/bazel-central-registry/pull/3320 +# Also we cannot switch to 20250127.0 until the protobuf team fixes the following issue. +# * https://github.com/protocolbuffers/protobuf/issues/20331 bazel_dep( name = "abseil-cpp", - version = "20250127.0", + version = "20240722.0.bcr.2", repo_name = "com_google_absl", ) -# protobuf: 30.0-rc1 2025-02-05 +# This is also workaround for the above issue bazel/issues/24426. +# This bazel_dep should be removed after the issue is fixed. +bazel_dep( + name = "re2", + version = "2024-07-02.bcr.1", +) + +# protobuf: 29.3 2025-01-09 # https://github.com/protocolbuffers/protobuf -# Use 30.0-rc1 since 29.x is not buildable with Abseil 20250127.0. +# We cannot switch to 30.x until the protobuf team fixes the following issue. +# * https://github.com/protocolbuffers/protobuf/issues/20331 bazel_dep( name = "protobuf", - version = "30.0-rc1", + version = "29.3", repo_name = "com_google_protobuf", ) -# googletest: 1.16.0 2025-02-08 +# googletest: 1.15.2 2024-07-31 # https://github.com/google/googletest +# We cannot switch to 1.16.0 until the protobuf team fixes the following issue. +# * https://github.com/protocolbuffers/protobuf/issues/20331 bazel_dep( name = "googletest", - version = "1.16.0", + version = "1.15.2", repo_name = "com_google_googletest", )