mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +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
|
@ -53,6 +53,10 @@ struct FlakeInputs
|
|||
FlakeInputs(const nlohmann::json & json);
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
/* Lock file information about a flake input. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue