jdx/mise · error

vfox plugin artifacts currently require tar.gz format

Error message

vfox plugin artifacts currently require tar.gz format

What it means

mise currently only supports vfox plugin archives distributed as gzip-compressed tarballs. A vfox plugin packslip artifact whose format is missing or is anything other than "tar.gz" or "tgz" (e.g. zip, tar.xz, bare file) is rejected during artifact validation.

Solutions

  1. Change the vfox plugin artifact's format to "tar.gz" (or "tgz") and publish the archive in that format
  2. Repackage the existing plugin archive as a gzip tarball if you control the release
  3. Pin to an earlier release that still ships tar.gz
  4. If you are the mise maintainer-side consumer, upgrade mise once support for the new format lands

Example fix

// before
{ "extensions": { "mise": { "plugin": "vfox" } }, "format": "zip" }
// after
{ "extensions": { "mise": { "plugin": "vfox" } }, "format": "tar.gz" }
Defensive patterns

Strategy: validation

Validate before calling

if (a?.extensions?.mise?.plugin === 'vfox' && !['tar.gz','tgz'].includes(a.format)) throw new Error('vfox artifact must be tar.gz');

Type guard

const isTarGzVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && (a.format === 'tar.gz' || a.format === 'tgz');

Prevention

When it happens

Trigger: Installing a tool whose vfox plugin packslip artifact declares format "zip"/"tar.xz"/"tar.bz2" or omits format entirely.

Common situations: Upstream switched release archive formats (e.g. to zstd or xz) breaking older mise versions; authors generating plugin releases as zip files; manifests where format was never filled in for the plugin artifact.

Related errors


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

Appendix: source

Thrown at src/plugins/packslip.rs:199

            .get("mise")
            .and_then(|v| v.get("plugin"))
            .and_then(|v| v.as_str())
            == Some("vfox"),
        "packslip artifact must declare extensions.mise.plugin = vfox"
    );
    ensure!(
        artifact.bin.is_empty(),
        "vfox plugin artifacts must not declare executables"
    );
    ensure!(
        artifact.os.is_none() && artifact.arch.is_none() && artifact.libc.is_none(),
        "vfox plugin artifact must be portable"
    );
    ensure!(
        artifact.requires.is_none(),
        "vfox plugin artifacts must not declare host requirements"
    );
    ensure!(
        matches!(artifact.format.as_deref(), Some("tar.gz" | "tgz")),
        "vfox plugin artifacts currently require tar.gz format"
    );
    Ok(())
}

/// Reject links and special files before extraction, including links whose
/// targets might otherwise be resolved while unpacking a later archive entry.
pub(crate) fn validate_archive(path: &Path) -> Result<()> {
    let reader = flate2::read::GzDecoder::new(std::fs::File::open(path)?);
    let mut archive = jdx_tar::Archive::new(reader);
    for entry in archive.entries()? {
        let entry = entry?;
        ensure!(
            matches!(
                entry.entry_type(),
                jdx_tar::EntryType::File | jdx_tar::EntryType::Directory
            ),

View on GitHub (pinned to 533346cc37)