mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
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.
This commit is contained in:
parent
092ee24627
commit
c67407172d
6 changed files with 45 additions and 26 deletions
|
@ -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());
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue