Add CI coverage for utf8_range
We will soon be moving utf8_range into the protobuf repo, not as a subtree
anymore but as the real source of truth. This change adds CI coverage in
advance so that there will not be a lapse in coverage.
I also upgraded our pinned versions of rules_fuzzing and rules_python, to fix
some errors that came up with Bazel 6 and Python 3.12. I had to patch
rules_fuzzing but I am working on upstreaming the fixes.
PiperOrigin-RevId: 579987379
diff --git a/WORKSPACE b/WORKSPACE
index 487c933..4dd69d2 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -17,6 +17,10 @@
protobuf_deps()
+load("@rules_python//python:repositories.bzl", "py_repositories")
+
+py_repositories()
+
# Bazel platform rules.
http_archive(
name = "platforms",
@@ -163,15 +167,25 @@
http_archive(
name = "rules_fuzzing",
- sha256 = "d9002dd3cd6437017f08593124fdd1b13b3473c7b929ceb0e60d317cb9346118",
- strip_prefix = "rules_fuzzing-0.3.2",
- urls = ["https://github.com/bazelbuild/rules_fuzzing/archive/v0.3.2.zip"],
+ 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 = ["//third_party: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", fuzzing_py_deps_install_deps = "install_deps")
+
+fuzzing_py_deps_install_deps()
+
bind(
name = "python_headers",
actual = "@system_python//:python_headers",