From b5127f4afafb958a2ea6d57a8c97f3d60b6f44aa Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Fri, 1 Sep 2023 11:39:13 +0000 Subject: [PATCH] Add RE2 release `2023-09-01`. (#877) --- modules/re2/2023-09-01/MODULE.bazel | 24 ++++++++++++ .../2023-09-01/patches/module_dot_bazel.patch | 16 ++++++++ modules/re2/2023-09-01/presubmit.yml | 38 +++++++++++++++++++ modules/re2/2023-09-01/source.json | 9 +++++ modules/re2/metadata.json | 3 +- 5 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 modules/re2/2023-09-01/MODULE.bazel create mode 100644 modules/re2/2023-09-01/patches/module_dot_bazel.patch create mode 100644 modules/re2/2023-09-01/presubmit.yml create mode 100644 modules/re2/2023-09-01/source.json diff --git a/modules/re2/2023-09-01/MODULE.bazel b/modules/re2/2023-09-01/MODULE.bazel new file mode 100644 index 00000000000..c560b60fa52 --- /dev/null +++ b/modules/re2/2023-09-01/MODULE.bazel @@ -0,0 +1,24 @@ +# 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 = "2023-09-01", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_cc", version = "0.0.8") +bazel_dep(name = "abseil-cpp", version = "20230802.0", repo_name = "com_google_absl") +bazel_dep(name = "google_benchmark", version = "1.8.2", repo_name = "com_github_google_benchmark", dev_dependency = True) +bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest", dev_dependency = True) +bazel_dep(name = "rules_python", version = "0.25.0") +bazel_dep(name = "abseil-py", version = "1.4.0", repo_name = "io_abseil_py", dev_dependency = True) +bazel_dep(name = "pybind11_bazel", version = "2.11.1") + +python_configure = use_extension("@pybind11_bazel//:python_configure.bzl", "extension") +python_configure.toolchain(python_version = "3") # ignored when non-root module +use_repo(python_configure, "local_config_python", "pybind11") diff --git a/modules/re2/2023-09-01/patches/module_dot_bazel.patch b/modules/re2/2023-09-01/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..78da2e86f3c --- /dev/null +++ b/modules/re2/2023-09-01/patches/module_dot_bazel.patch @@ -0,0 +1,16 @@ +--- MODULE.bazel.orig 2023-09-01 09:50:45.729641178 +0000 ++++ MODULE.bazel 2023-09-01 09:54:43.625118522 +0000 +@@ -13,10 +13,10 @@ + bazel_dep(name = "platforms", version = "0.0.7") + bazel_dep(name = "rules_cc", version = "0.0.8") + bazel_dep(name = "abseil-cpp", version = "20230802.0", repo_name = "com_google_absl") +-bazel_dep(name = "google_benchmark", version = "1.8.2", repo_name = "com_github_google_benchmark") +-bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest") ++bazel_dep(name = "google_benchmark", version = "1.8.2", repo_name = "com_github_google_benchmark", dev_dependency = True) ++bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest", dev_dependency = True) + bazel_dep(name = "rules_python", version = "0.25.0") +-bazel_dep(name = "abseil-py", version = "1.4.0", repo_name = "io_abseil_py") ++bazel_dep(name = "abseil-py", version = "1.4.0", repo_name = "io_abseil_py", dev_dependency = True) + bazel_dep(name = "pybind11_bazel", version = "2.11.1") + + python_configure = use_extension("@pybind11_bazel//:python_configure.bzl", "extension") diff --git a/modules/re2/2023-09-01/presubmit.yml b/modules/re2/2023-09-01/presubmit.yml new file mode 100644 index 00000000000..6e4252caf9a --- /dev/null +++ b/modules/re2/2023-09-01/presubmit.yml @@ -0,0 +1,38 @@ +matrix: + platform: + - centos7_java11_devtoolset10 + - debian10 + - ubuntu2004 + - macos + - windows +tasks: + build: + platform: ${{ platform }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@re2//:re2' + +bcr_test_module: + module_path: '.' + + matrix: + platform: + - centos7_java11_devtoolset10 + - debian10 + - ubuntu2004 + - macos + - windows + tasks: + test: + platform: ${{ platform }} + test_flags: + - '--cxxopt=-std=c++14' + test_targets: + - '//:all' + - '-//:dfa_test' + - '-//:exhaustive1_test' + - '-//:exhaustive2_test' + - '-//:exhaustive3_test' + - '-//:exhaustive_test' + - '-//:random_test' diff --git a/modules/re2/2023-09-01/source.json b/modules/re2/2023-09-01/source.json new file mode 100644 index 00000000000..5c3ceafcc4c --- /dev/null +++ b/modules/re2/2023-09-01/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-IkuDUdxGM7EBLb2EdWTgYKRr5goioUY9S1uZP9S/Wcw=", + "strip_prefix": "re2-2023-09-01", + "url": "https://github.com/google/re2/releases/download/2023-09-01/re2-2023-09-01.zip", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-MUQkRNgPJ0lbYqOXoBu2m2vLH7IuKEbK/VWTw7WWrnA=" + } +} diff --git a/modules/re2/metadata.json b/modules/re2/metadata.json index b8c40c65326..fdf2154b856 100644 --- a/modules/re2/metadata.json +++ b/modules/re2/metadata.json @@ -13,7 +13,8 @@ "versions": [ "2021-09-01", "2023-06-02", - "2023-08-01" + "2023-08-01", + "2023-09-01" ], "yanked_versions": {} }