Fix overlapping flake follows

This commit is contained in:
Sebastian Ullrich
2022-08-28 11:50:25 +02:00
parent 2b9d381301
commit 6f65c11780
2 changed files with 32 additions and 2 deletions
+1 -1
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));