1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00
nix/tests/functional/flakes
Eelco Dolstra c98026e982 Lazy trees v2
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.
2025-05-19 16:45:53 +02:00
..
absolute-attr-paths.sh housekeeping: shellcheck for tests/functional/flakes/absolute-attr-paths.sh 2024-06-12 17:41:16 -04:00
absolute-paths.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
build-paths.sh No longer copy functional tests to the build dir 2024-11-03 16:42:38 -05:00
bundle.sh Revert "Merge pull request #11826 from DeterminateSystems/revert-11804" 2024-11-11 15:21:34 +01:00
check.sh nix flake check: Add functional tests for apps and formatter 2024-08-17 15:50:06 +05:30
circular.sh housekeeping: shellcheck for tests/functional/flakes/circular.sh 2024-06-12 17:41:16 -04:00
commit-lock-file-summary.sh Add a utility function for creating/registering a simple flake 2024-11-20 18:51:23 +01:00
common.sh skip ifds in nix flake show instead of throwing 2025-03-27 11:16:35 +01:00
config.sh Revert "Merge pull request #11826 from DeterminateSystems/revert-11804" 2024-11-11 15:21:34 +01:00
debugger.sh tests/functional: Add flake-based regression for debugger use-after-free 2025-02-21 14:36:39 +00:00
develop.sh tests/functional/flakes/develop.sh: Don't hang 2024-11-18 16:28:12 +01:00
dubious-query.sh Add a utility function for creating/registering a simple flake 2024-11-20 18:51:23 +01:00
edit.sh Add a utility function for creating/registering a simple flake 2024-11-20 18:51:23 +01:00
eval-cache.sh stack overflow is EvalBaseError 2025-03-20 17:43:20 +00:00
flake-in-submodule.sh Add a test for a flake referencing a flake that has inputs.self 2025-02-04 22:14:38 +01:00
flakes.sh Lazy trees v2 2025-05-19 16:45:53 +02:00
follow-paths.sh Fix follow-paths test 2025-01-16 11:19:20 +01:00
init.sh More quote coalescing 2024-06-12 17:47:54 -04:00
inputs.sh housekeeping: shellcheck for tests/functional/flakes/inputs.sh 2024-06-12 17:41:16 -04:00
mercurial.sh More quote coalescing 2024-06-12 17:47:54 -04:00
meson.build Backward compatibility hack for dealing with dir in URL-style flakerefs 2025-05-09 10:10:42 +02:00
non-flake-inputs.sh tests/functional/flakes/non-flake-inputs: Test non-flake inputs having sourceInfo 2025-05-18 00:40:09 +01:00
old-lockfiles.sh Backward compatibility hack for dealing with dir in URL-style flakerefs 2025-05-09 10:10:42 +02:00
prefetch.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
relative-paths-lockfile.sh tests/functional/flakes: Add test case for subflake locking 2025-03-20 13:28:05 +08:00
relative-paths.sh Merge pull request #13170 from MattSturgeon/fix/call-flake/rel-path 2025-05-19 14:13:54 +02:00
run.sh Revert "Merge pull request #11826 from DeterminateSystems/revert-11804" 2024-11-11 15:21:34 +01:00
search-root.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
shebang.sh shellcheck 2024-11-20 23:03:31 +01:00
show.sh skip ifds in nix flake show instead of throwing 2025-03-27 11:16:35 +01:00
source-paths.sh Lazy trees v2 2025-05-19 16:45:53 +02:00
symlink-paths.sh Update tests/functional/flakes/symlink-paths.sh 2025-02-04 11:25:14 -05:00
tree.zip Handle zip files containing symlinks 2024-05-09 19:33:09 +02:00
unlocked-override.sh Lazy trees v2 2025-05-19 16:45:53 +02:00