fix: test failure

This commit is contained in:
Shunsuke Shibayama 2024-02-14 16:23:07 +09:00
parent d17767f326
commit 3df896e1c6
3 changed files with 9 additions and 3 deletions

View file

@ -31,6 +31,12 @@ fn main() -> std::io::Result<()> {
copy_dir(&erg_path, "lib").unwrap_or_else(|_| {
eprintln!("failed to copy the std library to {erg_path}");
});
let pkgs_path = path::Path::new(&erg_path).join("lib").join("pkgs");
if !pkgs_path.exists() {
fs::create_dir(&pkgs_path).unwrap_or_else(|_| {
eprintln!("failed to create the directory: {}", pkgs_path.display());
});
}
Ok(())
}