jdx/mise · error

vfox plugin artifacts must not declare executables

Error message

vfox plugin artifacts must not declare executables

What it means

A vfox plugin packslip artifact must not declare executables (artifact.bin). vfox plugins are Lua-based plugin archives managed by mise itself, so declaring binary executables contradicts the plugin packaging contract and is rejected. This keeps the install path unambiguous: mise unpacks the archive rather than linking declared binaries.

Solutions

  1. Remove the bin array (or its entries) from the vfox plugin artifact in the packslip manifest
  2. If the release genuinely ships executables, split it into two artifacts: one normal binary artifact and one vfox plugin artifact
  3. Pin to an earlier release whose artifact does not declare bin

Example fix

// before
{ "extensions": { "mise": { "plugin": "vfox" } }, "bin": ["mytool"] }
// after
{ "extensions": { "mise": { "plugin": "vfox" } } }
Defensive patterns

Strategy: validation

Validate before calling

if (a?.extensions?.mise?.plugin === 'vfox' && Array.isArray(a.bin) && a.bin.length > 0) throw new Error('vfox artifact must not declare bin');

Type guard

const isBinFreeVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && (!a.bin || a.bin.length === 0);

Prevention

When it happens

Trigger: Installing a tool whose packslip artifact has extensions.mise.plugin = "vfox" but also lists one or more entries in its bin array.

Common situations: Upstream projects that ship both a CLI binary and a vfox plugin in one artifact; authors copying an artifact template from a normal (non-plugin) release and adding the vfox marker on top of an existing bin list.

Understand the failure class

Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.

Related errors


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

Appendix: source

Thrown at src/plugins/packslip.rs:187

        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(),
        "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(())
}

View on GitHub (pinned to 533346cc37)