diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-11 23:34:02 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-06-12 00:52:56 +0200 |
commit | 7db879e65e83b1c65206b490d36a69e97c5a877a (patch) | |
tree | fecb0d376bbaf8b784b12c1fba3c5a402e1b04e1 /src/libexpr/flake/lockfile.hh | |
parent | d15c20efd5fa1744a4d6835365a0b4d3ceb3432c (diff) |
Check 'follows' inputs
Diffstat (limited to 'src/libexpr/flake/lockfile.hh')
-rw-r--r-- | src/libexpr/flake/lockfile.hh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libexpr/flake/lockfile.hh b/src/libexpr/flake/lockfile.hh index 04ac80f56..5e7cfda3e 100644 --- a/src/libexpr/flake/lockfile.hh +++ b/src/libexpr/flake/lockfile.hh @@ -67,6 +67,13 @@ struct LockFile bool operator ==(const LockFile & other) const; std::shared_ptr<Node> findInput(const InputPath & path); + + std::map<InputPath, Node::Edge> getAllInputs() const; + + static std::string diff(const LockFile & oldLocks, const LockFile & newLocks); + + /* Check that every 'follows' input target exists. */ + void check(); }; std::ostream & operator <<(std::ostream & stream, const LockFile & lockFile); @@ -75,6 +82,4 @@ InputPath parseInputPath(std::string_view s); std::string printInputPath(const InputPath & path); -std::string diffLockFiles(const LockFile & oldLocks, const LockFile & newLocks); - } |