1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-25 03:39:36 +01:00
nix/src
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
..
build-remote Rename hintfmt to HintFmt 2024-02-08 11:58:25 -08:00
libcmd fetchToStore(): Don't always respect settings.readOnlyMode 2024-02-20 11:46:49 +01:00
libexpr Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
libfetchers Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
libmain libexpr: Support structured error classes 2024-02-01 16:39:38 -08:00
libstore Merge pull request #10006 from edolstra/fix-impure-fetchurl 2024-02-13 22:50:55 +01:00
libutil Don't send settings that depend on disabled experimental features to the daemon 2024-02-20 15:28:42 +01:00
nix Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
nix-build Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-channel Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Input: Replace 'locked' bool by isLocked() method 2024-02-20 16:59:15 +01:00
nix-instantiate Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-store Merge pull request #9948 from obsidiansystems/no-canon-path-from-cwd 2024-02-12 14:04:01 +01:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00