aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake/lockfile.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-18 21:17:27 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-09-18 21:57:57 +0200
commitc67407172d8383394f4962ad177c84bf04529e5e (patch)
tree6dab718a9dbda0e13c2ceab07521449edd02f98c /src/libexpr/flake/lockfile.hh
parent092ee246277c76cd80f34088911419058e8b0f2f (diff)
Record original flakerefs in the lock file again
If 'input.<name>.uri' changes, then the entry in the lockfile for input <name> should be considered stale. Also print some messages when lock file entries are added/updated.
Diffstat (limited to 'src/libexpr/flake/lockfile.hh')
-rw-r--r--src/libexpr/flake/lockfile.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/flake/lockfile.hh b/src/libexpr/flake/lockfile.hh
index 084eabc1a..ab81eac8b 100644
--- a/src/libexpr/flake/lockfile.hh
+++ b/src/libexpr/flake/lockfile.hh
@@ -30,11 +30,11 @@ struct LockedInputs
/* Lock file information about a flake input. */
struct LockedInput : LockedInputs
{
- FlakeRef ref;
+ FlakeRef ref, originalRef;
Hash narHash;
- LockedInput(const FlakeRef & ref, const Hash & narHash)
- : ref(ref), narHash(narHash)
+ LockedInput(const FlakeRef & ref, const FlakeRef & originalRef, const Hash & narHash)
+ : ref(ref), originalRef(originalRef), narHash(narHash)
{
assert(ref.isImmutable());
};