aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake/lockfile.cc
diff options
context:
space:
mode:
authorSebastian Ullrich <sebasti@nullri.ch>2022-08-28 11:46:29 +0200
committerSebastian Ullrich <sebasti@nullri.ch>2022-08-28 11:50:25 +0200
commit6f65c117802ef4683eeaf64bc079cc3a8b9608c2 (patch)
tree777f094996081e5b3f2fe81e7e1da78d35971661 /src/libexpr/flake/lockfile.cc
parent2b9d38130161116081d24630b99d1a437fa3bdb2 (diff)
Fix overlapping flake follows
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 60b52d578..384ead05b 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() && !get(inputs, *follows))
+ if (!follows->empty() && !findInput(*follows))
throw Error("input '%s' follows a non-existent input '%s'",
printInputPath(inputPath),
printInputPath(*follows));