feat(tvix/nix-compat): Use StorePath in Output
https: //b.tvl.fyi/issues/264 Change-Id: Icb09be9643245cc68d09f01d7723af2d44d6bd1a Reviewed-on: https://cl.tvl.fyi/c/depot/+/11001 Autosubmit: Peter Kolloch <info@eigenvalue.net> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
035f617b7f
commit
fde488ec6d
11 changed files with 119 additions and 82 deletions
|
|
@ -74,14 +74,8 @@ impl KnownPaths {
|
|||
// For all output paths, update our lookup table.
|
||||
// We only write into the lookup table once.
|
||||
for output in drv.outputs.values() {
|
||||
// We assume derivations to be passed validated, so ignoring rest
|
||||
// and expecting parsing is ok.
|
||||
// TODO: b/264
|
||||
let (output_path, _rest) =
|
||||
StorePath::from_absolute_path_full(&output.path).expect("parse output path");
|
||||
|
||||
self.outputs_to_drvpath
|
||||
.entry(output_path)
|
||||
.entry(output.path.as_ref().expect("missing store path").clone())
|
||||
.or_insert(drv_path.to_owned());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue