mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
Fix overlapping flake follows
This commit is contained in:
parent
2b9d381301
commit
6f65c11780
2 changed files with 32 additions and 2 deletions
|
@ -338,7 +338,7 @@ void LockFile::check()
|
|||
|
||||
for (auto & [inputPath, input] : inputs) {
|
||||
if (auto follows = std::get_if<1>(&input)) {
|
||||
if (!follows->empty() && !get(inputs, *follows))
|
||||
if (!follows->empty() && !findInput(*follows))
|
||||
throw Error("input '%s' follows a non-existent input '%s'",
|
||||
printInputPath(inputPath),
|
||||
printInputPath(*follows));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue