1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

Record TreeInfo in the lock file

Necessary for #3253.
This commit is contained in:
Eelco Dolstra 2020-02-01 23:33:44 +01:00
parent 8451298b35
commit b9d64f9318
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 89 additions and 16 deletions

View file

@ -36,10 +36,10 @@ struct LockedInputs
struct LockedInput : LockedInputs
{
FlakeRef ref, originalRef;
Hash narHash;
TreeInfo info;
LockedInput(const FlakeRef & ref, const FlakeRef & originalRef, const Hash & narHash)
: ref(ref), originalRef(originalRef), narHash(narHash)
LockedInput(const FlakeRef & ref, const FlakeRef & originalRef, const TreeInfo & info)
: ref(ref), originalRef(originalRef), info(info)
{ }
LockedInput(const nlohmann::json & json);
@ -48,7 +48,8 @@ struct LockedInput : LockedInputs
{
return
ref == other.ref
&& narHash == other.narHash
&& originalRef == other.originalRef
&& info == other.info
&& inputs == other.inputs;
}