jdx/mise · error

skill asset is not an archive mise can unpack

Error message

skill asset {name} is not an archive mise can unpack

What it means

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.

Solutions

  1. Check the asset's file name/extension and use one mise supports (tar, tar.gz, zip, etc.)
  2. Point the packslip at the correct archive asset of the release
  3. Unpack or repackage the asset yourself and reference the archive form
  4. If upstream uses a new format, request support for it in mise

Example fix

// before (packslip)
// name = "myskill"            # no archive extension
// after
// name = "myskill.tar.gz"
Defensive patterns

Strategy: validation

Validate before calling

// check the extension before wiring the asset
const ok = /\.(tar|tar\.gz|tgz|tar\.xz|tar\.bz2|zip)$/i.test(assetName);

Try / catch

try { await fetchFiles(...) } catch (e) { if (/is not an archive mise can unpack/.test(e.message)) { pickArchiveAsset(); } else { throw e; } }

Prevention

When it happens

Trigger: 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).

Common situations: 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.

Understand the failure class

Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/80c20377b2a689c2. Report an issue: GitHub.

Appendix: source

Thrown at src/packslip.rs:607

/// An executable of the install, by the name the packslip gave it.
fn installed_bin(install_path: &Path, program: &str) -> Option<PathBuf> {
    if !is_safe_relative(program) {
        return None;
    }
    let linked = install_path.join(MISE_BINS_DIR).join(program);
    if linked.exists() {
        return Some(linked);
    }
    locate_in_install(install_path, program)
}

/// Unpack a skill shipped as its own archive, dropping a lone top-level
/// directory the way artifacts are unpacked.
fn unpack_skill(archive: &Path, dir: &Path, pr: &dyn SingleReport) -> Result<()> {
    let name = archive.file_name().unwrap_or_default().to_string_lossy();
    let format = file::ExtractionFormat::from_file_name(&name);
    if !format.is_archive() {
        bail!("skill asset {name} is not an archive mise can unpack");
    }
    let strip_components = usize::from(file::should_strip_components(archive, format)?);
    let staging = staging_dir(dir)?;
    let unpacked = file::extract_archive(
        archive,
        &staging,
        format,
        &file::ExtractOptions {
            strip_components,
            pr: Some(pr),
            ..Default::default()
        },
    );
    into_place(&staging, dir, unpacked)
}

/// A fresh sibling directory to build a skill in, so `dir` only ever
/// exists once it is complete and an interrupted attempt cannot pass for

View on GitHub (pinned to 533346cc37)