{"record":{"id":"4bcb7c8f27ad2fc4","repo":"wasmerio/wasmer","slug":"v8-archive-did-not-contain-a-top-level-lib-d","errorCode":null,"errorMessage":"v8 archive {} did not contain a top-level `lib/` directory after unpack (expected {})","messagePattern":"v8 archive (.+?) did not contain a top-level `lib/` directory after unpack \\(expected (.+?)\\)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/api/build.rs","lineNumber":125,"sourceCode":"            panic!(\n                \"failed to create temporary wee8 unpack directory in {}: {err}\",\n                cache_dir.display()\n            )\n        });\n        let tar = xz::read::XzDecoder::new(tar_data.as_slice());\n        let mut archive = tar::Archive::new(tar);\n        archive.unpack(unpack_tmp.path()).unwrap_or_else(|err| {\n            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(),","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/api/build.rs#L107-L143","documentation":"Error \"v8 archive {} did not contain a top-level `lib/` directory after unpack (expected {})\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/api/build.rs:125 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"}