1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 22:33:57 +02:00

path fetcher: Fix relative path check

This commit is contained in:
Eelco Dolstra 2021-09-21 13:19:26 +02:00
parent be69a98d2c
commit 5cbb9c5406
2 changed files with 11 additions and 6 deletions

View file

@ -766,7 +766,7 @@ cat > $flakeFollowsA/flake.nix <<EOF
{
description = "Flake A";
inputs = {
B.url = "path:./../../flakeB";
B.url = "path:../flakeB";
};
outputs = { ... }: {};
}
@ -774,7 +774,7 @@ EOF
git -C $flakeFollowsA add flake.nix
nix flake lock $flakeFollowsA 2>&1 | grep 'this is a security violation'
nix flake lock $flakeFollowsA 2>&1 | grep 'points outside'
# Test flake in store does not evaluate
rm -rf $badFlakeDir