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:
parent
2bc6c3395b
commit
f50117ba4c
2 changed files with 2 additions and 2 deletions
|
|
@ -270,7 +270,7 @@ EvalState::EvalState(
|
||||||
exception, and make union source accessor
|
exception, and make union source accessor
|
||||||
catch it, so we don't need to do this hack.
|
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(
|
, rootFS(
|
||||||
({
|
({
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ EOF
|
||||||
git -C $flakeFollowsA add flake.nix
|
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 $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.
|
# Test relative non-flake inputs.
|
||||||
cat > $flakeFollowsA/flake.nix <<EOF
|
cat > $flakeFollowsA/flake.nix <<EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue