Add support for Bzlmod for the next release
https://bazel.build/external/overview#bzlmod Bzlmod will be the default in a future Bazel release. By default it requires projects to be registered with the Bazel Central Registry (https://registry.bazel.build/) and thus uses regular releases by default. Users that want to "live-at-head" can still do this through with overrides (https://bazel.build/external/module#overrides). This change updates GoogleTest dependencies to use released versions. CI uses Bzlmod except in the case of linux_gcc-floor, which will keep testing the old WORKSPACE-based dependency system. PiperOrigin-RevId: 601489729 Change-Id: I6be52034eba0d0e5fe12110e5e82879305cf73ff
This commit is contained in:
committed by
Copybara-Service
parent
563ebf1769
commit
6a5938233b
@@ -7,16 +7,16 @@ def googletest_deps():
|
||||
|
||||
if not native.existing_rule("com_googlesource_code_re2"):
|
||||
http_archive(
|
||||
name = "com_googlesource_code_re2", # 2023-03-17T11:36:51Z
|
||||
sha256 = "cb8b5312a65f2598954545a76e8bce913f35fbb3a21a5c88797a4448e9f9b9d9",
|
||||
strip_prefix = "re2-578843a516fd1da7084ae46209a75f3613b6065e",
|
||||
urls = ["https://github.com/google/re2/archive/578843a516fd1da7084ae46209a75f3613b6065e.zip"],
|
||||
name = "com_googlesource_code_re2",
|
||||
sha256 = "828341ad08524618a626167bd320b0c2acc97bd1c28eff693a9ea33a7ed2a85f",
|
||||
strip_prefix = "re2-2023-11-01",
|
||||
urls = ["https://github.com/google/re2/releases/download/2023-11-01/re2-2023-11-01.zip"],
|
||||
)
|
||||
|
||||
if not native.existing_rule("com_google_absl"):
|
||||
http_archive(
|
||||
name = "com_google_absl", # 2023-09-13T14:58:42Z
|
||||
sha256 = "7766815ef6293dc7bca58fef59a96d7d3230874412dcd36dafb0e313ed1356f2",
|
||||
strip_prefix = "abseil-cpp-9e1789ffea47fdeb3133aa42aa9592f3673fb6ed",
|
||||
urls = ["https://github.com/abseil/abseil-cpp/archive/9e1789ffea47fdeb3133aa42aa9592f3673fb6ed.zip"],
|
||||
name = "com_google_absl",
|
||||
sha256 = "338420448b140f0dfd1a1ea3c3ce71b3bc172071f24f4d9a57d59b45037da440",
|
||||
strip_prefix = "abseil-cpp-20240116.0",
|
||||
urls = ["https://github.com/abseil/abseil-cpp/releases/download/20240116.0/abseil-cpp-20240116.0.tar.gz"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user