diff --git a/modules/re2/2025-11-05.bcr.1/MODULE.bazel b/modules/re2/2025-11-05.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..81f1d39489b --- /dev/null +++ b/modules/re2/2025-11-05.bcr.1/MODULE.bazel @@ -0,0 +1,29 @@ +# Copyright 2009 The RE2 Authors. All Rights Reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +# Bazel (http://bazel.build/) MODULE file for RE2. + +module( + name = "re2", + version = "2025-11-05.bcr.1", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "1.0.0") +bazel_dep(name = "apple_support", version = "1.24.2") +bazel_dep(name = "rules_cc", version = "0.2.14") +bazel_dep(name = "abseil-cpp", version = "20250814.1") +bazel_dep(name = "rules_python", version = "1.6.3") +bazel_dep(name = "pybind11_bazel", version = "3.0.0") + +# This is a temporary hack for `x64_x86_windows`. +# TODO(junyer): Remove whenever no longer needed. +cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension", dev_dependency = True) +use_repo(cc_configure, "local_config_cc") + +# These dependencies will be ignored when the `re2` module is not +# the root module (or when `--ignore_dev_dependency` is enabled). +bazel_dep(name = "google_benchmark", version = "1.9.4", dev_dependency = True) +bazel_dep(name = "googletest", version = "1.17.0.bcr.2", dev_dependency = True) +bazel_dep(name = "abseil-py", version = "2.1.0", dev_dependency = True) diff --git a/modules/re2/2025-11-05.bcr.1/presubmit.yml b/modules/re2/2025-11-05.bcr.1/presubmit.yml new file mode 100644 index 00000000000..f7b87bb5eff --- /dev/null +++ b/modules/re2/2025-11-05.bcr.1/presubmit.yml @@ -0,0 +1,58 @@ +matrix: + platform: + - rockylinux8 + - debian10 + - ubuntu2004 + - macos + bazel: + - 7.x + - 8.x + - 9.* + +tasks: + unix_build: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++17' + build_targets: + - '@re2//:re2' + - '@re2//python:re2' + windows_build: + platform: windows + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=/std:c++17' + build_targets: + - '@re2//:re2' + - '@re2//python:re2' + +bcr_test_module: + module_path: '.' + matrix: + platform: + - rockylinux8 + - debian10 + - ubuntu2004 + - macos + - windows + bazel: + - 7.x + - 8.x + tasks: + unix_test: + platform: ${{ platform }} + bazel: ${{ bazel }} + test_flags: + - '--cxxopt=-std=c++17' + test_targets: + - '//:small_tests' + - '//python:all' + windows_test: + platform: windows + bazel: ${{ bazel }} + test_flags: + - '--cxxopt=/std:c++17' + test_targets: + - '//:small_tests' + - '//python:all' diff --git a/modules/re2/2025-11-05.bcr.1/source.json b/modules/re2/2025-11-05.bcr.1/source.json new file mode 100644 index 00000000000..ae21dbfdaca --- /dev/null +++ b/modules/re2/2025-11-05.bcr.1/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-x7Gnp8aNLXz400PcVmVcG1qMiq3twBfbRT1MHYkTuEQ=", + "strip_prefix": "re2-2025-11-05", + "url": "https://github.com/google/re2/releases/download/2025-11-05/re2-2025-11-05.zip" +} diff --git a/modules/re2/metadata.json b/modules/re2/metadata.json index 85ce172fb57..f8d573085bd 100644 --- a/modules/re2/metadata.json +++ b/modules/re2/metadata.json @@ -28,7 +28,8 @@ "2025-06-26", "2025-08-12", "2025-08-12.bcr.1", - "2025-11-05" + "2025-11-05", + "2025-11-05.bcr.1" ], "yanked_versions": { "2023-06-02": "bad compatibility_level, upgrade to 2023-09-01 or newer",