diff options
Diffstat (limited to 'src/libexpr/flake/lockfile.hh')
-rw-r--r-- | src/libexpr/flake/lockfile.hh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libexpr/flake/lockfile.hh b/src/libexpr/flake/lockfile.hh index 6203c40cb..51649df3d 100644 --- a/src/libexpr/flake/lockfile.hh +++ b/src/libexpr/flake/lockfile.hh @@ -39,9 +39,14 @@ struct LockedInput : LockedInputs { FlakeRef lockedRef, originalRef; TreeInfo info; - - LockedInput(const FlakeRef & lockedRef, const FlakeRef & originalRef, const TreeInfo & info) - : lockedRef(lockedRef), originalRef(originalRef), info(info) + bool isFlake = true; + + 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; |