diff options
author | tomberek <tomberek@users.noreply.github.com> | 2023-08-25 10:33:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 10:33:05 -0400 |
commit | b563ef38cca8f247a21b86c157feabcf94d66c09 (patch) | |
tree | 00b71e8dbcb7f431558affebf3c2eed29ad1d5d3 /src | |
parent | dd9f816b29560af728928ea74898203f3efa3fd8 (diff) | |
parent | 75243c96937b472665b94729df81f8296b262085 (diff) |
Merge pull request #8819 from VertexA115/fix/deep-follow-paths
Fix follow path checking at depths greater than 2
Diffstat (limited to 'src')
-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 ba2fd46f0..3c202967a 100644 --- a/src/libexpr/flake/lockfile.cc +++ b/src/libexpr/flake/lockfile.cc @@ -345,7 +345,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)); |