1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

flakes: Differentiate self.outPath and self.sourceInfo.outPath

It would be incorrect to say that the `sourceInfo` has an `outPath`
that isn't the root. `sourceInfo` is about the root, whereas only
the flake may not be about the root. Thanks Eelco for pointing that
out.
This commit is contained in:
Robert Hensing 2023-02-22 03:28:30 +01:00
parent 904a107d16
commit 5d834c40d0
2 changed files with 18 additions and 5 deletions

View file

@ -46,6 +46,7 @@ test_git_subdir_self_path() {
default =
assert builtins.readFile ./message == "all good\n";
assert builtins.readFile (inputs.self + "/message") == "all good\n";
assert inputs.self.outPath == inputs.self.sourceInfo.outPath + "/b-low";
import ./simple.nix;
};
};