mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Add 'flake' attribute to lock files to denote non-flakes
This commit is contained in:
parent
73b6d87e17
commit
5a1514adb8
3 changed files with 12 additions and 4 deletions
|
@ -39,9 +39,14 @@ struct LockedInput : LockedInputs
|
|||
{
|
||||
FlakeRef lockedRef, originalRef;
|
||||
TreeInfo info;
|
||||
bool isFlake = true;
|
||||
|
||||
LockedInput(const FlakeRef & lockedRef, const FlakeRef & originalRef, const TreeInfo & info)
|
||||
: lockedRef(lockedRef), originalRef(originalRef), info(info)
|
||||
LockedInput(
|
||||
const FlakeRef & lockedRef,
|
||||
const FlakeRef & originalRef,
|
||||
const TreeInfo & info,
|
||||
bool isFlake = true)
|
||||
: lockedRef(lockedRef), originalRef(originalRef), info(info), isFlake(isFlake)
|
||||
{ }
|
||||
|
||||
LockedInput(const nlohmann::json & json);
|
||||
|
@ -52,7 +57,8 @@ struct LockedInput : LockedInputs
|
|||
lockedRef == other.lockedRef
|
||||
&& originalRef == other.originalRef
|
||||
&& info == other.info
|
||||
&& inputs == other.inputs;
|
||||
&& inputs == other.inputs
|
||||
&& isFlake == other.isFlake;
|
||||
}
|
||||
|
||||
nlohmann::json toJson() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue