1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 20:41:47 +02:00

Revert "Merge pull request #6621 from Kha/nested-follows"

This reverts commit c530cda345, reversing
changes made to 4adcdff5c1.
This commit is contained in:
Eelco Dolstra 2022-09-01 15:26:19 +02:00
parent c530cda345
commit a8b3d777fb
3 changed files with 14 additions and 95 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() && !findInput(*follows))
if (!follows->empty() && !get(inputs, *follows))
throw Error("input '%s' follows a non-existent input '%s'",
printInputPath(inputPath),
printInputPath(*follows));