feat(tvix/store): enable name customization in the store
Sometimes, Nix lets someone customize the `name` in the store for a path, this is the case for `builtins.path` which takes a `name` argument, we leave it to the caller to choose the name, which can be the basename by default of the path. Change-Id: Icdbf71d1d8f2dca5716b99d20aac885aab905b80 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10653 Tested-by: BuildkiteCI Autosubmit: raitobezarius <tvl@lahfa.xyz> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
4c3ba46ba3
commit
3d8aafb1c7
3 changed files with 19 additions and 15 deletions
|
|
@ -276,6 +276,7 @@ impl EvalIO for TvixStoreIO {
|
|||
let output_path = self.tokio_handle.block_on(async {
|
||||
tvix_store::import::import_path_as_nar_ca(
|
||||
path,
|
||||
tvix_store::import::path_to_name(path)?,
|
||||
&self.blob_service,
|
||||
&self.directory_service,
|
||||
&self.path_info_service,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue