{"record":{"id":"d7a44d93f5ad21cc","repo":"jdx/mise","slug":"vfox-plugin-artifacts-must-not-declare-host-requir","errorCode":null,"errorMessage":"vfox plugin artifacts must not declare host requirements","messagePattern":"vfox plugin artifacts must not declare host requirements","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/packslip.rs","lineNumber":195,"sourceCode":"pub(crate) fn validate_artifact(artifact: &packslip::model::Artifact) -> Result<()> {\n    ensure!(\n        artifact\n            .extensions\n            .get(\"mise\")\n            .and_then(|v| v.get(\"plugin\"))\n            .and_then(|v| v.as_str())\n            == Some(\"vfox\"),\n        \"packslip artifact must declare extensions.mise.plugin = vfox\"\n    );\n    ensure!(\n        artifact.bin.is_empty(),\n        \"vfox plugin artifacts must not declare executables\"\n    );\n    ensure!(\n        artifact.os.is_none() && artifact.arch.is_none() && artifact.libc.is_none(),\n        \"vfox plugin artifact must be portable\"\n    );\n    ensure!(\n        artifact.requires.is_none(),\n        \"vfox plugin artifacts must not declare host requirements\"\n    );\n    ensure!(\n        matches!(artifact.format.as_deref(), Some(\"tar.gz\" | \"tgz\")),\n        \"vfox plugin artifacts currently require tar.gz format\"\n    );\n    Ok(())\n}\n\n/// Reject links and special files before extraction, including links whose\n/// targets might otherwise be resolved while unpacking a later archive entry.\npub(crate) fn validate_archive(path: &Path) -> Result<()> {\n    let reader = flate2::read::GzDecoder::new(std::fs::File::open(path)?);\n    let mut archive = jdx_tar::Archive::new(reader);\n    for entry in archive.entries()? {\n        let entry = entry?;\n        ensure!(","sourceCodeStart":177,"sourceCodeEnd":213,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/plugins/packslip.rs#L177-L213","documentation":"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.","triggerScenarios":"Installing a tool whose packslip artifact sets extensions.mise.plugin = \"vfox\" while also populating the requires field (e.g. requires: { libc: \"glibc\", kernel: \"...\" }).","commonSituations":"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.","solutions":["Delete the requires field from the vfox plugin artifact in the manifest","Split the release so requires lives only on the binary artifact(s), keeping the plugin artifact requirement-free","Pin to an earlier release whose plugin artifact omits requires"],"exampleFix":"// before\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } }, \"requires\": { \"libc\": \"glibc\" } }\n// after\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } } }","handlingStrategy":"validation","validationCode":"if (a?.extensions?.mise?.plugin === 'vfox' && a.requires) throw new Error('vfox artifact must not declare requires');","typeGuard":"const isRequirementFreeVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && a.requires == null;","tryCatchPattern":null,"preventionTips":["Strip shared manifest blocks (requires, bin) when templating plugin artifacts","Validate manifests in CI before publishing"],"tags":["packslip","vfox","manifest-validation"],"backgroundTag":"conflicting-config-options","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}