1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 06:52:43 +01:00

Revert storeFS to use makeFSSourceAccessor()

Need to investigate why store->getFSAccessor() breaks a test.
This commit is contained in:
Eelco Dolstra 2025-05-18 10:01:57 +02:00
parent 2bc6c3395b
commit f50117ba4c
2 changed files with 2 additions and 2 deletions

View file

@ -270,7 +270,7 @@ EvalState::EvalState(
exception, and make union source accessor
catch it, so we don't need to do this hack.
*/
{CanonPath(store->storeDir), store->getFSAccessor(settings.pureEval)},
{CanonPath(store->storeDir), makeFSSourceAccessor(dirOf(store->toRealPath(StorePath::dummy)))}
}))
, rootFS(
({

View file

@ -131,7 +131,7 @@ EOF
git -C $flakeFollowsA add flake.nix
expect 1 nix flake lock $flakeFollowsA 2>&1 | grep '/flakeB.*is forbidden in pure evaluation mode'
#expect 1 nix flake lock --impure $flakeFollowsA 2>&1 | grep '/flakeB.*does not exist' # FIXME
expect 1 nix flake lock --impure $flakeFollowsA 2>&1 | grep '/flakeB.*does not exist' # FIXME
# Test relative non-flake inputs.
cat > $flakeFollowsA/flake.nix <<EOF