Skip to content

Commit

Permalink
Update MODULE.bazel to workaround the issue for Bazel 8.0.0.
Browse files Browse the repository at this point in the history
#codehealth

PiperOrigin-RevId: 715841834
  • Loading branch information
hiroyuki-komatsu committed Jan 15, 2025
1 parent 280c06e commit 5f08937
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# MODULE.bazel is the new dependency configuration system (Bzlmod), but not used yet by default.
# To use Bzlmod, you need to specify --enable_bzlmod to the Bazel command or modify .bazelrc.

# 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
bazel_dep(
name = "abseil-cpp",
version = "20240722.0.bcr.2",
repo_name = "com_google_absl",
)
local_path_override(
module_name = "abseil-cpp",
path = "third_party/abseil-cpp",
)

# 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",
)
bazel_dep(
name = "protobuf",
repo_name = "com_google_protobuf",
Expand Down

0 comments on commit 5f08937

Please sign in to comment.