tvl-depot/tvix/glue/src/tests
Florian Klink 8181817e53 feat(tvix/glue/fetchers): support file:// URLs
Nix supports file:// - URLs for `fetchurl` and `fetchTarball`.

Convert the enums and function arguments to hold a URL type.
reqwest::Url is a re-export of the url crate, but they don't re-export
the parsing errors, and as we want to hold these in our Error types, add
it to Cargo.toml explicitly.

The Fetcher::download function now checks on the scheme, and either
opens the file locally, or does do a HTTP request as before.

Fetch gets its custom debug impl, removing potentially sensitive
username and password out of URLs.

Change-Id: I777db1fe487370e822cbfec4624034aca5e08045
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11504
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
2024-04-23 12:41:17 +00:00
..
nix_tests feat(tvix/eval): implement appendContext 2024-04-04 17:24:26 +00:00
tvix_tests feat(tvix/glue/fetchers): support file:// URLs 2024-04-23 12:41:17 +00:00
0hm2f1psjpcwg8fijsmr4wwxrx59s092-bar.drv feat(tvix/build/protos): add some missing fields 2023-12-26 10:20:41 +00:00
blob.tar.bz2 feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
blob.tar.gz feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
blob.tar.xz feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
ch49594n9avinrf8ip0aslidkc4lxkqv-foo.drv feat(tvix/build): add derivation_to_build_request 2023-12-11 22:35:39 +00:00
mod.rs feat(tvix/eval): implement appendContext 2024-04-04 17:24:26 +00:00
ss2p4wmxijn652haqyd7dckxwl4c7hxx-bar.drv test(tvix/glue/known_paths): add tests 2024-02-17 07:54:05 +00:00