aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake/lockfile.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-09-01 15:26:19 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-09-01 15:26:19 +0200
commita8b3d777fbdaf0b732f129e5be62cd2a1227674b (patch)
tree5212f343e1b0f083fadc7032cac17114ed874c3e /src/libexpr/flake/lockfile.cc
parentc530cda345377370c52a616d608de88b9d67cd40 (diff)
Revert "Merge pull request #6621 from Kha/nested-follows"
This reverts commit c530cda345377370c52a616d608de88b9d67cd40, reversing changes made to 4adcdff5c1d5f9f135c4ec61d690890443c19e6a.
Diffstat (limited to 'src/libexpr/flake/lockfile.cc')
-rw-r--r--src/libexpr/flake/lockfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/flake/lockfile.cc b/src/libexpr/flake/lockfile.cc
index 384ead05b..60b52d578 100644
--- a/src/libexpr/flake/lockfile.cc
+++ b/src/libexpr/flake/lockfile.cc
@@ -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));