This makes third_party/utf8_range no longer a Git subtree, but instead the permanent location and source of truth for utf8_range. It is also now incorporated into the @com_google_protobuf Bazel repo. Utf8_range still has its own separate CMake build for now, though. PiperOrigin-RevId: 580682733pull/14693/head
parent
e6f8b9d102
commit
5ca84008fc
28 changed files with 47 additions and 188 deletions
@ -1,31 +0,0 @@ |
||||
# How to Contribute |
||||
|
||||
This repository is currently a read-only clone of internal Google code for use |
||||
in open-source projects. We don't currently have a mechanism to upstream |
||||
changes, but if you'd like to contribute, please reach out to us to discuss your |
||||
proposed changes. |
||||
|
||||
## Contributor License Agreement |
||||
|
||||
Contributions to this project must be accompanied by a Contributor License |
||||
Agreement (CLA). You (or your employer) retain the copyright to your |
||||
contribution; this simply gives us permission to use and redistribute your |
||||
contributions as part of the project. Head over to |
||||
<https://cla.developers.google.com/> to see your current agreements on file or |
||||
to sign a new one. |
||||
|
||||
You generally only need to submit a CLA once, so if you've already submitted one |
||||
(even if it was for a different project), you probably don't need to do it |
||||
again. |
||||
|
||||
## Code Reviews |
||||
|
||||
All submissions, including submissions by project members, require review. We |
||||
use GitHub pull requests for this purpose. Consult |
||||
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more |
||||
information on using pull requests. |
||||
|
||||
## Community Guidelines |
||||
|
||||
This project follows |
||||
[Google's Open Source Community Guidelines](https://opensource.google/conduct/). |
@ -1,48 +0,0 @@ |
||||
workspace(name = "utf8_range") |
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
||||
load("//:workspace_deps.bzl", "utf8_range_deps") |
||||
|
||||
utf8_range_deps() |
||||
|
||||
http_archive( |
||||
name = "rules_python", |
||||
sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b", |
||||
strip_prefix = "rules_python-0.26.0", |
||||
url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz", |
||||
) |
||||
|
||||
load("@rules_python//python:repositories.bzl", "py_repositories") |
||||
|
||||
py_repositories() |
||||
|
||||
http_archive( |
||||
name = "com_google_googletest", |
||||
sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2", |
||||
strip_prefix = "googletest-release-1.12.1", |
||||
urls = [ |
||||
"https://mirror.bazel.build/github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz", |
||||
"https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz", |
||||
], |
||||
) |
||||
|
||||
http_archive( |
||||
name = "rules_fuzzing", |
||||
sha256 = "ff52ef4845ab00e95d29c02a9e32e9eff4e0a4c9c8a6bcf8407a2f19eb3f9190", |
||||
strip_prefix = "rules_fuzzing-0.4.1", |
||||
urls = ["https://github.com/bazelbuild/rules_fuzzing/releases/download/v0.4.1/rules_fuzzing-0.4.1.zip"], |
||||
patches = ["//:rules_fuzzing.patch"], |
||||
patch_args = ["-p1"], |
||||
) |
||||
|
||||
load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies") |
||||
|
||||
rules_fuzzing_dependencies() |
||||
|
||||
load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init") |
||||
|
||||
rules_fuzzing_init() |
||||
|
||||
load("@fuzzing_py_deps//:requirements.bzl", "install_deps") |
||||
|
||||
install_deps() |
@ -1,25 +0,0 @@ |
||||
diff --git a/fuzzing/tools/validate_dict.py b/fuzzing/tools/validate_dict.py
|
||||
index d561e68..52cbcb8 100644
|
||||
--- a/fuzzing/tools/validate_dict.py
|
||||
+++ b/fuzzing/tools/validate_dict.py
|
||||
@@ -19,7 +19,7 @@ Validates and merges a set of fuzzing dictionary files into a single output.
|
||||
|
||||
from absl import app
|
||||
from absl import flags
|
||||
-from dict_validation import validate_line
|
||||
+from fuzzing.tools.dict_validation import validate_line
|
||||
from sys import stderr
|
||||
|
||||
FLAGS = flags.FLAGS
|
||||
diff --git a/fuzzing/requirements.txt b/fuzzing/requirements.txt
|
||||
index 01482d4..4b36f4f 100644
|
||||
--- a/fuzzing/requirements.txt
|
||||
+++ b/fuzzing/requirements.txt
|
||||
@@ -1,5 +1,5 @@
|
||||
# Python requirements for the tools supporting the fuzzing rules. These are
|
||||
# installed automatically through the WORKSPACE configuration.
|
||||
|
||||
-absl-py==0.11.0 --hash=sha256:b3d9eb5119ff6e0a0125f6dabf2f9fae02f8acae7be70576002fac27235611c5
|
||||
-six==1.15.0 --hash=sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced
|
||||
+absl-py==2.0.0 --hash=sha256:9a28abb62774ae4e8edbe2dd4c49ffcd45a6a848952a5eccc6a49f3f0fc1e2f3
|
||||
+six==1.15.0
|
@ -1,11 +0,0 @@ |
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
||||
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
||||
|
||||
def utf8_range_deps(): |
||||
maybe( |
||||
http_archive, |
||||
name = "com_google_absl", |
||||
url = "https://github.com/abseil/abseil-cpp/archive/8c0b94e793a66495e0b1f34a5eb26bd7dc672db0.zip", |
||||
strip_prefix = "abseil-cpp-8c0b94e793a66495e0b1f34a5eb26bd7dc672db0", |
||||
sha256 = "b9f490fae1c0d89a19073a081c3c588452461e5586e4ae31bc50a8f36339135e", |
||||
) |
@ -1,8 +0,0 @@ |
||||
#!/bin/bash -eux |
||||
|
||||
set -eux |
||||
|
||||
cd $(dirname $0) |
||||
|
||||
git subtree pull --prefix third_party/utf8_range \ |
||||
https://github.com/protocolbuffers/utf8_range.git main --squash |
Loading…
Reference in new issue