1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 10:31:15 +02:00
nix/src/libexpr/primops
Eelco Dolstra 071dd2b3a4 Input: Replace 'locked' bool by isLocked() method
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).
2024-02-20 16:59:15 +01:00
..
context.cc libexpr: Support structured error classes 2024-02-01 16:39:38 -08:00
derivation.nix Remove corepkgs/derivation.nix 2020-09-17 09:41:02 +02:00
fetchClosure.cc Rename hintfmt to HintFmt 2024-02-08 11:58:25 -08:00
fetchMercurial.cc libexpr: Support structured error classes 2024-02-01 16:39:38 -08:00
fetchTree.cc Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
fromTOML.cc libexpr: Support structured error classes 2024-02-01 16:39:38 -08:00