diff --git a/tests/functional/flakes/follow-paths.sh b/tests/functional/flakes/follow-paths.sh index c654e0650..a71d4c6d7 100755 --- a/tests/functional/flakes/follow-paths.sh +++ b/tests/functional/flakes/follow-paths.sh @@ -118,23 +118,20 @@ nix flake lock $flakeFollowsA jq -r -c '.nodes | keys | .[]' $flakeFollowsA/flake.lock | grep "^foobar$" # Check that path: inputs cannot escape from their root. -# FIXME: this test is wonky because with lazy trees, ../flakeB at the root is equivalent to /flakeB and not an error. cat > $flakeFollowsA/flake.nix <&1 | grep '/flakeB.*is forbidden in pure evaluation mode' -expect 1 nix eval --impure $flakeFollowsA#x 2>&1 | grep '/flakeB.*does not exist' +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' # Test relative non-flake inputs. cat > $flakeFollowsA/flake.nix <