aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake/lockfile.cc
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2022-09-01 12:04:00 +0200
committerGitHub <noreply@github.com>2022-09-01 12:04:00 +0200
commitc530cda345377370c52a616d608de88b9d67cd40 (patch)
treefdad3fc438bfed0eefbf90cc72b447ca456ab7d0 /src/libexpr/flake/lockfile.cc
parent4adcdff5c1d5f9f135c4ec61d690890443c19e6a (diff)
parent6f65c117802ef4683eeaf64bc079cc3a8b9608c2 (diff)
Merge pull request #6621 from Kha/nested-follows
Fix nested flake input overrides
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));