Skip to content

Commit

Permalink
Add abseil-cpp@20240116.1 (#1472)
Browse files Browse the repository at this point in the history
* Add abseil-cpp@20240116.1

* Fix MODULE.bazel with a patch

* Add Bazel versions to presubmit.yml

* Correct module_dot_bazel.patch
  • Loading branch information
derekmauro committed Feb 12, 2024
1 parent 18c0581 commit eda0719
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 1 deletion.
39 changes: 39 additions & 0 deletions modules/abseil-cpp/20240116.1/MODULE.bazel
@@ -0,0 +1,39 @@
# Copyright 2024 The Abseil Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# https://bazel.build/external/overview#bzlmod

module(
name = "abseil-cpp",
version = "20240116.1",
compatibility_level = 1,
)

# Only direct dependencies need to be listed below.
# Please keep the versions in sync with the versions in the WORKSPACE file.

bazel_dep(name = "bazel_skylib",
version = "1.5.0")

bazel_dep(name = "google_benchmark",
version = "1.8.3",
repo_name = "com_github_google_benchmark",
dev_dependency = True)

bazel_dep(name = "googletest",
version = "1.14.0.bcr.1",
repo_name = "com_google_googletest")

bazel_dep(name = "platforms",
version = "0.0.8")
11 changes: 11 additions & 0 deletions modules/abseil-cpp/20240116.1/patches/module_dot_bazel.patch
@@ -0,0 +1,11 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -16,7 +16,7 @@

module(
name = "abseil-cpp",
- version = "20240116.0",
+ version = "20240116.1",
compatibility_level = 1,
)

20 changes: 20 additions & 0 deletions modules/abseil-cpp/20240116.1/presubmit.yml
@@ -0,0 +1,20 @@
matrix:
bazel:
- 6.x
- 7.x
platform:
- centos7_java11_devtoolset10
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--cxxopt=-std=c++14'
build_targets:
- '@abseil-cpp//absl/strings'
- '@abseil-cpp//absl/flags:flag'
9 changes: 9 additions & 0 deletions modules/abseil-cpp/20240116.1/source.json
@@ -0,0 +1,9 @@
{
"url": "https://github.com/abseil/abseil-cpp/releases/download/20240116.1/abseil-cpp-20240116.1.tar.gz",
"integrity": "sha256-PHQyBN94NmrS6vI21mMdg/a8ko0XBd0AALhy5Ttz3Go=",
"strip_prefix": "abseil-cpp-20240116.1",
"patch_strip": 0,
"patches": {
"module_dot_bazel.patch": "sha256-H6J0U5xTQRVVGFkTsBioOCeWetuCfpavigN8YvpQkIQ="
}
}
3 changes: 2 additions & 1 deletion modules/abseil-cpp/metadata.json
Expand Up @@ -18,7 +18,8 @@
"20230802.0",
"20230802.0.bcr.1",
"20230802.1",
"20240116.0"
"20240116.0",
"20240116.1"
],
"yanked_versions": {}
}

0 comments on commit eda0719

Please sign in to comment.