mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Properly fail on flakerefs that don't point to a directory
Directly fail if a flakeref points to something that isn't a directory instead of falling back to the logic of trying to look up the hierarchy to find a valid flake root. Fix https://github.com/NixOS/nix/issues/9868
This commit is contained in:
parent
ba9b6b29b7
commit
11a1dcc43b
2 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ mkdir subdir
|
|||
pushd subdir
|
||||
|
||||
success=("" . .# .#test ../subdir ../subdir#test "$PWD")
|
||||
failure=("path:$PWD")
|
||||
failure=("path:$PWD" "../simple.nix")
|
||||
|
||||
for i in "${success[@]}"; do
|
||||
nix build $i || fail "flake should be found by searching up directories"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue