tvl-depot/tvix/glue/src/fetchers
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
..
decompression.rs fix(tvix-glue/fetchers/decompression): propagate error with ? 2024-06-13 21:07:40 +00:00
mod.rs refactor(tvix/glue): return a parsed Url in NixFetchArgs 2024-06-26 04:51:31 +00:00