{"record":{"id":"cd810624e69b9f55","repo":"jdx/mise","slug":"packslip-artifact-must-declare-extensions-mise-plu","errorCode":null,"errorMessage":"packslip artifact must declare extensions.mise.plugin = vfox","messagePattern":"packslip artifact must declare extensions\\.mise\\.plugin = vfox","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/packslip.rs","lineNumber":178,"sourceCode":"    }\n    if let Err(error) = file::rename(payload, destination) {\n        if existed {\n            file::rename(backup, destination).wrap_err(\"restoring previous plugin\")?;\n        }\n        return Err(error);\n    }\n    if let Err(error) = commit() {\n        file::rename(destination, payload)?;\n        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(),","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/plugins/packslip.rs#L160-L196","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Add extensions.mise.plugin = \"vfox\" to the artifact's extensions object in the packslip manifest","Check the manifest source for typos such as \"vfox-\" or plugin inside the wrong nesting level","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","Pin to an earlier tool release whose manifest is valid, or open an issue against the upstream packslip"],"exampleFix":"// before (packslip artifact)\n{ \"name\": \"my-plugin\", \"filename\": \"my-plugin.tar.gz\" }\n// after\n{ \"name\": \"my-plugin\", \"filename\": \"my-plugin.tar.gz\", \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } } }","handlingStrategy":"validation","validationCode":"function isValidVfoxArtifact(a) {\n  return typeof a?.extensions?.mise?.plugin === 'string' && a.extensions.mise.plugin === 'vfox';\n}\nif (!artifacts.every(isValidVfoxArtifact)) throw new Error('artifact missing extensions.mise.plugin = vfox');","typeGuard":"const isVfoxMarked = (a) => a?.extensions?.mise?.plugin === 'vfox';","tryCatchPattern":null,"preventionTips":["Include extensions.mise.plugin = \"vfox\" in every plugin artifact template","Add a CI schema check that lint packslip manifests for the required extension key","Diff generated manifests against the packslip schema after any generator upgrade"],"tags":["packslip","vfox","manifest-validation","schema"],"backgroundTag":"missing-required-config-field","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"}