mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Don't write lock files if they have dirty inputs
This commit is contained in:
parent
bd62290c23
commit
b29cec7697
4 changed files with 36 additions and 10 deletions
|
@ -176,6 +176,12 @@ struct FlakeRef
|
|||
bool isImmutable() const;
|
||||
|
||||
FlakeRef baseRef() const;
|
||||
|
||||
bool isDirty() const
|
||||
{
|
||||
return std::get_if<FlakeRef::IsPath>(&data)
|
||||
&& rev == Hash(rev->type);
|
||||
}
|
||||
};
|
||||
|
||||
std::ostream & operator << (std::ostream & str, const FlakeRef & flakeRef);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue