{"record":{"id":"92a1a915691b3a9b","repo":"wasmerio/wasmer","slug":"failed-to-remove-existing-wee8-lib-dir-before-r","errorCode":null,"errorMessage":"failed to remove existing wee8 lib dir {} before rename: {err}","messagePattern":"failed to remove existing wee8 lib dir (.+?) before rename: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/api/build.rs","lineNumber":133,"sourceCode":"            let _ = fs::remove_file(&archive_path);\n            panic!(\n                \"failed to unpack v8 archive cache {} into {} (cache removed so the next build can re-download): {err}\",\n                archive_path.display(),\n                unpack_tmp.path().display()\n            )\n        });\n        let staged_lib = unpack_tmp.path().join(\"lib\");\n        if !staged_lib.is_dir() {\n            let _ = fs::remove_file(&archive_path);\n            panic!(\n                \"v8 archive {} did not contain a top-level `lib/` directory after unpack (expected {})\",\n                archive_path.display(),\n                staged_lib.display()\n            );\n        }\n        if v8_lib_dir.exists() {\n            fs::remove_dir_all(&v8_lib_dir).unwrap_or_else(|err| {\n                panic!(\n                    \"failed to remove existing wee8 lib dir {} before rename: {err}\",\n                    v8_lib_dir.display()\n                )\n            });\n        }\n        fs::rename(&staged_lib, &v8_lib_dir).unwrap_or_else(|err| {\n            let _ = fs::remove_file(&archive_path);\n            panic!(\n                \"failed to move unpacked wee8 lib from {} to {}: {err}\",\n                staged_lib.display(),\n                v8_lib_dir.display()\n            )\n        });\n    }\n\n    println!(\"cargo:rustc-link-search=native={}\", v8_lib_dir.display());\n\n    if cfg!(any(target_os = \"linux\",)) {","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/api/build.rs#L115-L151","documentation":"Error \"failed to remove existing wee8 lib dir {} before rename: {err}\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/api/build.rs:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}