mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
This adds a setting 'lazy-trees' that causes flake inputs to be "mounted" as virtual filesystems on top of /nix/store as random "virtual" store paths. Only when the store path is actually used as a dependency of a store derivation do we materialize ("devirtualize") the input by copying it to its content-addressed location in the store. String contexts determine when devirtualization happens. One wrinkle is that there are cases where we had store paths without proper contexts, in particular when the user does `toString <path>` (where <path> is a source tree in the Nix store) and passes the result to a derivation. This usage was always broken, since it can result in derivations that lack correct references. But to ensure that we don't change evaluation results, we introduce a new type of context that results in devirtualization but not in store references. We also now print a warning about this.
13 lines
428 B
Text
13 lines
428 B
Text
error:
|
|
… while calling the 'toString' builtin
|
|
at /pwd/lang/eval-fail-hashfile-missing.nix:7:1:
|
|
6| in
|
|
7| toString (
|
|
| ^
|
|
8| builtins.concatLists (
|
|
|
|
… while evaluating the first argument passed to builtins.toString
|
|
|
|
… while calling the 'hashFile' builtin
|
|
|
|
error: path '/pwd/lang/this-file-is-definitely-not-there-7392097' does not exist
|