refactor(tvix/glue/known_paths): use StorePath
Passing a StorePathRef is annoying if we only (already) have a StorePath. Change-Id: Ic3b36c0041707230515a6745a57f0d25b2bafd16 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10948 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: Peter Kolloch <info@eigenvalue.net>
This commit is contained in:
parent
cc8b7fee57
commit
8cd93f3db5
2 changed files with 5 additions and 9 deletions
|
|
@ -443,7 +443,7 @@ pub(crate) mod derivation_builtins {
|
|||
// This one is still intermediate (so not added to known_paths)
|
||||
let derivation_or_fod_hash_tmp = drv.derivation_or_fod_hash(|drv_path| {
|
||||
known_paths
|
||||
.get_hash_derivation_modulo(drv_path)
|
||||
.get_hash_derivation_modulo(&drv_path.to_owned())
|
||||
.unwrap_or_else(|| panic!("{} not found", drv_path))
|
||||
.to_owned()
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue