aboutsummaryrefslogtreecommitdiff
path: root/ci/cmake_common.sh
diff options
context:
space:
mode:
authorDerek Mauro <dmauro@google.com>2024-01-11 15:58:39 -0800
committerCopybara-Service <copybara-worker@google.com>2024-01-11 15:59:36 -0800
commit41a2a2555588253dce0e10db4c545463c4a64731 (patch)
tree6f8a1ce5bcec16228c608e0ac7eb7c619cd282f3 /ci/cmake_common.sh
parent3acbe29b14428820cd18857284e082ac9926e314 (diff)
downloadabseil-41a2a2555588253dce0e10db4c545463c4a64731.tar.gz
abseil-41a2a2555588253dce0e10db4c545463c4a64731.tar.bz2
abseil-41a2a2555588253dce0e10db4c545463c4a64731.zip
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 Abseil 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: 597676666 Change-Id: I8d33facc432477c6dc7daa06fd00bb4ae8c4adba
Diffstat (limited to 'ci/cmake_common.sh')
-rw-r--r--ci/cmake_common.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/cmake_common.sh b/ci/cmake_common.sh
index 98976bc1..784b3815 100644
--- a/ci/cmake_common.sh
+++ b/ci/cmake_common.sh
@@ -14,7 +14,11 @@
# The commit of GoogleTest to be used in the CMake tests in this directory.
# Keep this in sync with the commit in the WORKSPACE file.
-readonly ABSL_GOOGLETEST_COMMIT="2dd1c131950043a8ad5ab0d2dda0e0970596586a"
+# TODO(dmauro): After the next GoogleTest release, use the stable file required
+# by Bzlmod. This means downloading a copy of the file and reuploading it to
+# avoid changing checksums if the compression is changed by GitHub. It also
+# means stop referring to it as a commit and instead use the uploaded filename.
+readonly ABSL_GOOGLETEST_COMMIT="f8d7d77c06936315286eb55f8de22cd23c188571"
# Avoid depending on GitHub by looking for a cached copy of the commit first.
if [[ -r "${KOKORO_GFILE_DIR:-}/distdir/${ABSL_GOOGLETEST_COMMIT}.zip" ]]; then