1
0
Fork 0
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:
Sebastian Ullrich 2022-08-28 11:46:29 +02:00
parent 2b9d381301
commit 6f65c11780
2 changed files with 32 additions and 2 deletions

View file

@ -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));