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:
parent
be69a98d2c
commit
5cbb9c5406
2 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue