wasmerio/wasmer · error
failed to remove existing wee8 lib dir {} before rename: {er
Error message
failed to remove existing wee8 lib dir {} before rename: {err} What it means
Error "failed to remove existing wee8 lib dir {} before rename: {err}" thrown in wasmerio/wasmer.
Source
Thrown at lib/api/build.rs:133
let _ = fs::remove_file(&archive_path);
panic!(
"failed to unpack v8 archive cache {} into {} (cache removed so the next build can re-download): {err}",
archive_path.display(),
unpack_tmp.path().display()
)
});
let staged_lib = unpack_tmp.path().join("lib");
if !staged_lib.is_dir() {
let _ = fs::remove_file(&archive_path);
panic!(
"v8 archive {} did not contain a top-level `lib/` directory after unpack (expected {})",
archive_path.display(),
staged_lib.display()
);
}
if v8_lib_dir.exists() {
fs::remove_dir_all(&v8_lib_dir).unwrap_or_else(|err| {
panic!(
"failed to remove existing wee8 lib dir {} before rename: {err}",
v8_lib_dir.display()
)
});
}
fs::rename(&staged_lib, &v8_lib_dir).unwrap_or_else(|err| {
let _ = fs::remove_file(&archive_path);
panic!(
"failed to move unpacked wee8 lib from {} to {}: {err}",
staged_lib.display(),
v8_lib_dir.display()
)
});
}
println!("cargo:rustc-link-search=native={}", v8_lib_dir.display());
if cfg!(any(target_os = "linux",)) {View on GitHub (pinned to 8c4b9ee9d3)
When it happens
Trigger: Thrown at lib/api/build.rs:133 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01).
Data as JSON: /api/errors/92a1a915691b3a9b.
Report an issue: GitHub.