Skip to content

Commit

Permalink
Rollback the versions of Abseil, Protobuf and Googletest.
Browse files Browse the repository at this point in the history
* To fix build failures on Windows with Bazel.
  + protocolbuffers/protobuf#20331

* abseil-cpp: 20240722.0.bcr.2
* re2: 2024-07-02.bcr.1
* protobuf: 29.3
* googletest: 1.15.2

PiperOrigin-RevId: 729343696
  • Loading branch information
hiroyuki-komatsu committed Feb 21, 2025
1 parent 0391721 commit 09d9351
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions src/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down

0 comments on commit 09d9351

Please sign in to comment.