mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: test failure
This commit is contained in:
parent
d17767f326
commit
3df896e1c6
3 changed files with 9 additions and 3 deletions
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue