1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 23:51:47 +02:00

nix flake lock: Fail if there is an unlocked input

Since the only purpose of `nix flake lock` is to write a new lock
file, it should be a fatal error if we can't write the lock file.
This commit is contained in:
Eelco Dolstra 2024-12-09 13:56:03 +01:00
parent 3081e7ce90
commit 8b9e0f86e4
4 changed files with 11 additions and 0 deletions

View file

@ -156,6 +156,11 @@ struct LockFlags
*/
bool writeLockFile = true;
/**
* Throw an exception when the flake has an unlocked input.
*/
bool failOnUnlocked = false;
/**
* Whether to use the registries to lookup indirect flake
* references like 'nixpkgs'.