From 813eff7841db80f3afbe9aa0417a07b0553b6adc Mon Sep 17 00:00:00 2001 From: Hiroyuki Komatsu Date: Mon, 10 Feb 2025 09:33:36 +0000 Subject: [PATCH] Update dependencies of abseil-cpp, protobuf and googletest in MODULE.bazel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use MODULE.bazel of Bazel instead of submodules of git. * abseil: 2024722 → 20250127 * protobuf: 29.1 → 29.3 * googletest: 1.15.2 → 1.16.0 #codehealth PiperOrigin-RevId: 725116251 --- src/MODULE.bazel | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/src/MODULE.bazel b/src/MODULE.bazel index 9a961847f..3cd9eb11f 100644 --- a/src/MODULE.bazel +++ b/src/MODULE.bazel @@ -2,40 +2,29 @@ # To use Bzlmod, you need to specify --enable_bzlmod to the Bazel command or modify .bazelrc. module(name = "mozc") -# 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 +# absl-cpp: 2025-02-04 +# https://github.com/abseil/abseil-cpp bazel_dep( name = "abseil-cpp", - version = "20240722.0.bcr.2", + version = "20250127.0", repo_name = "com_google_absl", ) -# 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 bazel_dep( name = "protobuf", + version = "29.3", repo_name = "com_google_protobuf", ) -local_path_override( - module_name = "protobuf", - path = "third_party/protobuf", -) +# googletest: 1.16.0 2025-02-08 +# https://github.com/google/googletest bazel_dep( name = "googletest", + version = "1.16.0", repo_name = "com_google_googletest", ) -local_path_override( - module_name = "googletest", - path = "third_party/gtest", -) # platforms: 0.0.10 2024-04-26 # https://github.com/bazelbuild/platforms/