1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 06:31:00 +01:00

Give a better error message in case of unlocked inputs

This commit is contained in:
Eelco Dolstra 2022-06-02 16:15:57 +02:00
parent 1395210a68
commit 1c7d0b716d
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 8 additions and 6 deletions

View file

@ -60,7 +60,9 @@ struct LockFile
void write(const Path & path) const;
bool isLocked() const;
/* Check whether this lock file has any unlocked inputs. If so,
return one. */
std::optional<FlakeRef> isUnlocked() const;
bool operator ==(const LockFile & other) const;