[cdc_stream] Switch asset_stream_manager to use Lyra (#25)

Switch asset_stream_manager to use Lyra

Lyra has a nice simple interface, but a few quirks that we work
around, mainly in the BaseCommand class:
- It does not support return values from running a command.
- It does not support return values from a custom arg parser.
- Lyra interprets --bad_arg as positional argument.

Fixes #15
This commit is contained in:
Lutz Justen
2022-12-01 10:36:48 +01:00
committed by GitHub
parent 7d7fcc67b9
commit a381541d1b
11 changed files with 631 additions and 291 deletions

View File

@@ -47,10 +47,10 @@ http_archive(
http_archive(
name = "com_github_fuse",
build_file = "@//third_party/fuse:BUILD",
sha256 = "832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874",
strip_prefix = "fuse-2.9.7",
patch_args = ["-p1"],
patches = ["@//third_party/fuse:disable_symbol_versioning.patch"],
sha256 = "832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874",
strip_prefix = "fuse-2.9.7",
url = "https://github.com/libfuse/libfuse/releases/download/fuse-2.9.7/fuse-2.9.7.tar.gz",
)
@@ -70,6 +70,14 @@ http_archive(
url = "https://github.com/tronkko/dirent/archive/refs/tags/1.23.2.tar.gz",
)
http_archive(
name = "com_github_lyra",
build_file = "@//third_party/lyra:BUILD.bazel",
sha256 = "a93f247ed89eba11ca36eb24c4f8ba7be636bf24e74aaaa8e1066e0954bec7e3",
strip_prefix = "Lyra-1.6.1",
url = "https://github.com/bfgroup/Lyra/archive/refs/tags/1.6.1.tar.gz",
)
local_repository(
name = "com_google_absl",
path = "third_party/absl",