Previously builtins.readDir would return an empty attribute set instead of barfing on non-existent paths. This is a regression from 2.32 for impure eval.
17 lines
613 B
Plaintext
17 lines
613 B
Plaintext
error:
|
|
… while evaluating the attribute 'relativePath'
|
|
at /pwd/lang/eval-fail-readDir-nonexistent-2.nix:2:3:
|
|
1| {
|
|
2| relativePath = builtins.readDir ./this/path/really/should/not/exist;
|
|
| ^
|
|
3| }
|
|
|
|
… while calling the 'readDir' builtin
|
|
at /pwd/lang/eval-fail-readDir-nonexistent-2.nix:2:18:
|
|
1| {
|
|
2| relativePath = builtins.readDir ./this/path/really/should/not/exist;
|
|
| ^
|
|
3| }
|
|
|
|
error: path '/pwd/lang/this/path/really/should/not/exist' does not exist
|