diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-09-01 12:04:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 12:04:00 +0200 |
commit | c530cda345377370c52a616d608de88b9d67cd40 (patch) | |
tree | fdad3fc438bfed0eefbf90cc72b447ca456ab7d0 /src/libexpr/flake/lockfile.cc | |
parent | 4adcdff5c1d5f9f135c4ec61d690890443c19e6a (diff) | |
parent | 6f65c117802ef4683eeaf64bc079cc3a8b9608c2 (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.cc | 2 |
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)); |