mirror of
https://github.com/NixOS/nix
synced 2025-07-05 04:01:47 +02:00
Represent 'follows' inputs explicitly in the lock file
This fixes an issue where lockfile generation was not idempotent: after updating a lockfile, a "follows" node would end up pointing to a new copy of the node, rather than to the original node.
This commit is contained in:
parent
195ed43b60
commit
0c62b4ad0f
8 changed files with 165 additions and 111 deletions
|
@ -19,9 +19,10 @@ typedef std::map<FlakeId, FlakeInput> FlakeInputs;
|
|||
|
||||
struct FlakeInput
|
||||
{
|
||||
FlakeRef ref;
|
||||
std::optional<FlakeRef> ref;
|
||||
bool isFlake = true;
|
||||
std::optional<InputPath> follows;
|
||||
bool absolute = false; // whether 'follows' is relative to the flake root
|
||||
FlakeInputs overrides;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue