{"record":{"id":"80c20377b2a689c2","repo":"jdx/mise","slug":"skill-asset-name-is-not-an-archive-mise-can-unpa","errorCode":null,"errorMessage":"skill asset {name} is not an archive mise can unpack","messagePattern":"skill asset (.+?) is not an archive mise can unpack","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/packslip.rs","lineNumber":607,"sourceCode":"/// An executable of the install, by the name the packslip gave it.\nfn installed_bin(install_path: &Path, program: &str) -> Option<PathBuf> {\n    if !is_safe_relative(program) {\n        return None;\n    }\n    let linked = install_path.join(MISE_BINS_DIR).join(program);\n    if linked.exists() {\n        return Some(linked);\n    }\n    locate_in_install(install_path, program)\n}\n\n/// Unpack a skill shipped as its own archive, dropping a lone top-level\n/// directory the way artifacts are unpacked.\nfn unpack_skill(archive: &Path, dir: &Path, pr: &dyn SingleReport) -> Result<()> {\n    let name = archive.file_name().unwrap_or_default().to_string_lossy();\n    let format = file::ExtractionFormat::from_file_name(&name);\n    if !format.is_archive() {\n        bail!(\"skill asset {name} is not an archive mise can unpack\");\n    }\n    let strip_components = usize::from(file::should_strip_components(archive, format)?);\n    let staging = staging_dir(dir)?;\n    let unpacked = file::extract_archive(\n        archive,\n        &staging,\n        format,\n        &file::ExtractOptions {\n            strip_components,\n            pr: Some(pr),\n            ..Default::default()\n        },\n    );\n    into_place(&staging, dir, unpacked)\n}\n\n/// A fresh sibling directory to build a skill in, so `dir` only ever\n/// exists once it is complete and an interrupted attempt cannot pass for","sourceCodeStart":589,"sourceCodeEnd":625,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/packslip.rs#L589-L625","documentation":"unpack_skill unpacks a skill that ships as its own archive. Before extracting, it derives the format from the file name; if the name does not correspond to any archive format mise can handle, it bails with this error instead of attempting extraction.","triggerScenarios":"fetch_files downloads a skill asset whose file name (extension) is not a recognized archive format (e.g. a bare binary, .foo, missing extension, or an unsupported compression).","commonSituations":"Upstream published the skill as a non-archive file, the packslip points at a wrong asset, an unknown new archive format was used upstream, URL rewrite stripped the extension.","solutions":["Check the asset's file name/extension and use one mise supports (tar, tar.gz, zip, etc.)","Point the packslip at the correct archive asset of the release","Unpack or repackage the asset yourself and reference the archive form","If upstream uses a new format, request support for it in mise"],"exampleFix":"// before (packslip)\n// name = \"myskill\"            # no archive extension\n// after\n// name = \"myskill.tar.gz\"","handlingStrategy":"validation","validationCode":"// check the extension before wiring the asset\nconst ok = /\\.(tar|tar\\.gz|tgz|tar\\.xz|tar\\.bz2|zip)$/i.test(assetName);","typeGuard":null,"tryCatchPattern":"try { await fetchFiles(...) } catch (e) { if (/is not an archive mise can unpack/.test(e.message)) { pickArchiveAsset(); } else { throw e; } }","preventionTips":["Reference archive assets (tar/zip family) in the packslip","Keep original file extensions on downloaded assets","Verify the release actually publishes an archive","Prefer the archive asset over bare binaries for skills"],"tags":["packslip","archive","extraction","validation"],"backgroundTag":"unsupported-operation","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}