{"record":{"id":"9890feea54423305","repo":"jdx/mise","slug":"vfox-plugin-artifacts-must-not-declare-executables","errorCode":null,"errorMessage":"vfox plugin artifacts must not declare executables","messagePattern":"vfox plugin artifacts must not declare executables","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/packslip.rs","lineNumber":187,"sourceCode":"        if existed {\n            file::rename(backup, destination).wrap_err(\"restoring previous plugin\")?;\n        }\n        return Err(error);\n    }\n    Ok(())\n}\n\npub(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","sourceCodeStart":169,"sourceCodeEnd":205,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/plugins/packslip.rs#L169-L205","documentation":"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.","triggerScenarios":"Installing a tool whose packslip artifact has extensions.mise.plugin = \"vfox\" but also lists one or more entries in its bin array.","commonSituations":"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.","solutions":["Remove the bin array (or its entries) from the vfox plugin artifact in the packslip manifest","If the release genuinely ships executables, split it into two artifacts: one normal binary artifact and one vfox plugin artifact","Pin to an earlier release whose artifact does not declare bin"],"exampleFix":"// before\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } }, \"bin\": [\"mytool\"] }\n// after\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } } }","handlingStrategy":"validation","validationCode":"if (a?.extensions?.mise?.plugin === 'vfox' && Array.isArray(a.bin) && a.bin.length > 0) throw new Error('vfox artifact must not declare bin');","typeGuard":"const isBinFreeVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && (!a.bin || a.bin.length === 0);","tryCatchPattern":null,"preventionTips":["Never copy bin arrays from binary-artifact templates into plugin artifacts","Split combined binary+plugin releases into separate artifacts","Validate manifests in CI before publishing releases"],"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"}