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:
parent
904a107d16
commit
5d834c40d0
2 changed files with 18 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue