1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-18 00:12:43 +01:00
nix/src/libexpr/flake
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
..
call-flake.nix Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
config.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
flake.cc Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
flake.hh Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
flakeref.cc Merge remote-tracking branch 'origin/master' into profile-names-instead-of-index 2023-12-21 16:21:26 +01:00
flakeref.hh Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
lockfile.cc Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
lockfile.hh Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
url-name.cc getNameFromURL(): Support uppercase characters in attribute names 2023-12-22 16:35:58 +01:00
url-name.hh Move url-name utility to libexpr/flake 2023-12-22 09:33:02 +01:00