aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake/lockfile.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-01-21 16:27:53 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-01-21 22:56:04 +0100
commit9f4d8c6170517c9452e25dc29c56a6fbb43d40a1 (patch)
tree25295dae9cd204f603b41ae59bc32cd9cb0ce88e /src/libexpr/flake/lockfile.hh
parent1bf9eb21b75f0d93d9c1633ea2e6fdf840047e79 (diff)
Pluggable fetchers
Flakes are now fetched using an extensible mechanism. Also lots of other flake cleanups.
Diffstat (limited to 'src/libexpr/flake/lockfile.hh')
-rw-r--r--src/libexpr/flake/lockfile.hh8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libexpr/flake/lockfile.hh b/src/libexpr/flake/lockfile.hh
index 757c37989..63a76b597 100644
--- a/src/libexpr/flake/lockfile.hh
+++ b/src/libexpr/flake/lockfile.hh
@@ -22,9 +22,7 @@ struct LockedInputs
nlohmann::json toJson() const;
- /* A lock file is dirty if it contains a dirty flakeref
- (i.e. reference to a dirty working tree). */
- bool isDirty() const;
+ bool isImmutable() const;
};
/* Lock file information about a flake input. */
@@ -35,9 +33,7 @@ struct LockedInput : LockedInputs
LockedInput(const FlakeRef & ref, const FlakeRef & originalRef, const Hash & narHash)
: ref(ref), originalRef(originalRef), narHash(narHash)
- {
- assert(ref.isImmutable());
- };
+ { }
LockedInput(const nlohmann::json & json);