jdx/mise · error

vfox plugin artifacts must not declare host requirements

Error message

vfox plugin artifacts must not declare host requirements

What it means

vfox plugin packslip artifacts must not declare host requirements (artifact.requires). Requirements such as minimum kernel versions or system libraries are a property of native binaries, not of portable Lua plugin archives, so declaring them alongside the vfox plugin marker is treated as an invalid manifest and rejected.

Solutions

  1. Delete the requires field from the vfox plugin artifact in the manifest
  2. Split the release so requires lives only on the binary artifact(s), keeping the plugin artifact requirement-free
  3. Pin to an earlier release whose plugin artifact omits requires

Example fix

// before
{ "extensions": { "mise": { "plugin": "vfox" } }, "requires": { "libc": "glibc" } }
// after
{ "extensions": { "mise": { "plugin": "vfox" } } }
Defensive patterns

Strategy: validation

Validate before calling

if (a?.extensions?.mise?.plugin === 'vfox' && a.requires) throw new Error('vfox artifact must not declare requires');

Type guard

const isRequirementFreeVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && a.requires == null;

Prevention

When it happens

Trigger: Installing a tool whose packslip artifact sets extensions.mise.plugin = "vfox" while also populating the requires field (e.g. requires: { libc: "glibc", kernel: "..." }).

Common situations: Copy-pasted artifact manifests where requires was left over from a native binary artifact; upstream release automation that applies the same requires block to every artifact including the plugin one.

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/d7a44d93f5ad21cc. Report an issue: GitHub.

Appendix: source

Thrown at src/plugins/packslip.rs:195

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

/// 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!(

View on GitHub (pinned to 533346cc37)