tvl-depot/tvix/glue/src
Florian Klink ea6f511241 refactor(tvix/glue): return a parsed Url in NixFetchArgs
The only two consumers (fetchurl, fetchtarball) of these do try to parse
it as URL, so do it in the helper.

Update url_basename to take a &url::URL, not a &str.

Also update the test to use rstest for the fixtures to reduce some
boilerplate there.

Change-Id: I1f85fe2803060dc4423e673cb7b9f9bf799d09b9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11875
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
2024-06-26 04:51:31 +00:00
..
builtins refactor(tvix/glue): return a parsed Url in NixFetchArgs 2024-06-26 04:51:31 +00:00
fetchers refactor(tvix/glue): return a parsed Url in NixFetchArgs 2024-06-26 04:51:31 +00:00
tests test(tvix/glue/fetchurl): add output path tests for fetchurl 2024-06-12 10:30:30 +00:00
.skip-subtree refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
fetchurl.nix refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
fetchurl.rs feat(tvix/glue): support builtin:fetchurl 2024-06-12 22:31:17 +00:00
known_paths.rs refactor(tvix/glue/fetchers): move store_path() tests here 2024-06-12 10:30:40 +00:00
lib.rs feat(tvix/glue): support builtin:fetchurl 2024-06-12 22:31:17 +00:00
refscan.rs refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
tvix_build.rs feat(tvix/nix-compat): Use StorePath in Output 2024-02-21 11:38:03 +00:00
tvix_io.rs feat(tvix/eval): add file_type method 2024-06-26 04:51:31 +00:00
tvix_store_io.rs refactor(tvix/glue): take &CAHash, not CAHash 2024-06-26 04:51:31 +00:00