From 41a2a2555588253dce0e10db4c545463c4a64731 Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Thu, 11 Jan 2024 15:58:39 -0800 Subject: 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 --- create_lts.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'create_lts.py') diff --git a/create_lts.py b/create_lts.py index 642b8847..7e5368e1 100755 --- a/create_lts.py +++ b/create_lts.py @@ -95,6 +95,11 @@ def main(argv): 'datestamp={} is not in the YYYYMMDD format'.format(datestamp)) # Replacement directives go here. + ReplaceStringsInFile( + 'MODULE.bazel', { + 'version = "head"': + 'version = "{}.0"'.format(datestamp) + }) ReplaceStringsInFile( 'absl/base/config.h', { '#undef ABSL_LTS_RELEASE_VERSION': -- cgit v1.2.3