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> |
||
---|---|---|
.. | ||
builtins | ||
fetchers | ||
tests | ||
.skip-subtree | ||
fetchurl.nix | ||
fetchurl.rs | ||
known_paths.rs | ||
lib.rs | ||
refscan.rs | ||
tvix_build.rs | ||
tvix_io.rs | ||
tvix_store_io.rs |