mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 04:56:01 +01:00
It's better to just check whether the input has all the attributes needed to consider itself locked (e.g. whether a Git input has an 'rev' attribute). Also, the 'locked' field was actually incorrect for Git inputs: it would be set to true even for dirty worktrees. As a result, we got away with using fetchTree() internally even though fetchTree() requires a locked input in pure mode. In particular, this allowed '--override-input' to work by accident. The fix is to pass a set of "overrides" to call-flake.nix for all the unlocked inputs (i.e. the top-level flake and any --override-inputs). |
||
|---|---|---|
| .. | ||
| functional | ||
| installer | ||
| nixos | ||
| unit | ||