ITADN

Error: nu::shell::io::directory_not_found when the files/scripts folder does not exist

#531Openmikaelvz 创建于 2026-01-10
M
mikaelvzcommented
Around 2 weeks ago my build failed on [https://github.com/mikaelvz/silverblue](https://github.com/mikaelvz/silverblue). The error was : ``` l/bluefin-dx-kled:latest => ============================ Start 'script' Module ============================ l/bluefin-dx-kled:latest => Error: nu::shell::io::directory_not_found l/bluefin-dx-kled:latest => l/bluefin-dx-kled:latest => × Directory not found l/bluefin-dx-kled:latest => ╭─[/tmp/modules/script/script.nu:10:6] l/bluefin-dx-kled:latest => 9 │ let script_dir = [$env.CONFIG_DIRECTORY scripts] | path join l/bluefin-dx-kled:latest => 10 │ cd $script_dir l/bluefin-dx-kled:latest => · ─────┬───── l/bluefin-dx-kled:latest => · ╰── Directory not found l/bluefin-dx-kled:latest => 11 │ glob ./**/*{.sh,.nu,.py} l/bluefin-dx-kled:latest => ╰──── l/bluefin-dx-kled:latest => help: '/tmp/files/scripts' does not exist l/bluefin-dx-kled:latest => l/bluefin-dx-kled:latest => ============================ Failed 'script' Module ============================ ``` Adding an empty folder **scripts** in files folder resolved the problem on this commit (https://github.com/mikaelvz/silverblue/commit/cc834724499c1b9762ecb92169e88320a75ea5d1). As scripts is not required in script module someone may have the same issue.
1 条评论