diff --git a/src/MODULE.bazel b/src/MODULE.bazel index dac43a4e0..e0c7a4c05 100644 --- a/src/MODULE.bazel +++ b/src/MODULE.bazel @@ -2,28 +2,45 @@ # To use Bzlmod, you need to specify --enable_bzlmod to the Bazel command or modify .bazelrc. module(name = "mozc") -# absl-cpp: 2025-02-04 -# 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", + # TODO: Remove this max_compatibility_level when the above protobuf issue is addressed. + max_compatibility_level = 1, 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", )