jdx/mise · error

packslip artifact must declare extensions.mise.plugin = vfox

Error message

packslip artifact must declare extensions.mise.plugin = vfox

What it means

mise validates every packslip artifact that declares itself a vfox plugin. Each artifact must explicitly set extensions.mise.plugin to the exact string "vfox" so mise knows to treat the payload as a vfox plugin archive. An artifact missing this marker, misspelling it, or using a non-string value is rejected with this error.

Solutions

  1. Add extensions.mise.plugin = "vfox" to the artifact's extensions object in the packslip manifest
  2. Check the manifest source for typos such as "vfox-" or plugin inside the wrong nesting level
  3. If you do not intend the artifact to be a vfox plugin, remove/fix the reference so it is not routed through plugin_artifact_contract
  4. Pin to an earlier tool release whose manifest is valid, or open an issue against the upstream packslip

Example fix

// before (packslip artifact)
{ "name": "my-plugin", "filename": "my-plugin.tar.gz" }
// after
{ "name": "my-plugin", "filename": "my-plugin.tar.gz", "extensions": { "mise": { "plugin": "vfox" } } }
Defensive patterns

Strategy: validation

Validate before calling

function isValidVfoxArtifact(a) {
  return typeof a?.extensions?.mise?.plugin === 'string' && a.extensions.mise.plugin === 'vfox';
}
if (!artifacts.every(isValidVfoxArtifact)) throw new Error('artifact missing extensions.mise.plugin = vfox');

Type guard

const isVfoxMarked = (a) => a?.extensions?.mise?.plugin === 'vfox';

Prevention

When it happens

Trigger: Installing or resolving a tool whose packslip artifact omits extensions.mise.plugin, sets it to a value other than "vfox", or encodes it as a non-string (e.g. a YAML/TOML table or boolean) instead of a quoted string.

Common situations: Hand-written or tool-generated packslip manifests where the extensions block was dropped during authoring or schema migration; upstream releases that changed their manifest format; copy-pasted artifacts referencing a different plugin type.

Understand the failure class

Background: "is required", "must be set", "missing required field": configuration validation errors across open-source libraries — this error's family across 36 libraries.

Related errors


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

Appendix: source

Thrown at src/plugins/packslip.rs:178

    }
    if let Err(error) = file::rename(payload, destination) {
        if existed {
            file::rename(backup, destination).wrap_err("restoring previous plugin")?;
        }
        return Err(error);
    }
    if let Err(error) = commit() {
        file::rename(destination, payload)?;
        if existed {
            file::rename(backup, destination).wrap_err("restoring previous plugin")?;
        }
        return Err(error);
    }
    Ok(())
}

pub(crate) fn validate_artifact(artifact: &packslip::model::Artifact) -> Result<()> {
    ensure!(
        artifact
            .extensions
            .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(),

View on GitHub (pinned to 533346cc37)