{"record":{"id":"df37829b1e928524","repo":"jdx/mise","slug":"vfox-plugin-artifact-must-be-portable","errorCode":null,"errorMessage":"vfox plugin artifact must be portable","messagePattern":"vfox plugin artifact must be portable","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/packslip.rs","lineNumber":191,"sourceCode":"    }\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\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)?);","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/plugins/packslip.rs#L173-L209","documentation":"vfox plugin packslip artifacts must be portable: they may not constrain the artifact to specific os, arch, or libc values. A single vfox plugin archive is expected to work on any platform mise runs it on. An artifact that sets any of these platform fields is rejected.","triggerScenarios":"Installing a tool whose packslip artifact declares vfox plugin but also sets a non-null os, arch, or libc field (e.g. os: [\"linux\"], arch: [\"amd64\"], libc: \"glibc\").","commonSituations":"Authors templating plugin artifacts from platform-specific binary artifacts and leaving the platform fields in place; upstream releases that started per-platform packaging of what used to be a portable plugin.","solutions":["Remove the os, arch, and libc fields from the vfox plugin artifact so it is portable","If per-platform payloads are truly needed, publish one portable vfox plugin per release and move platform logic into the Lua plugin itself","Pin to an earlier release with a portable artifact"],"exampleFix":"// before\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } }, \"os\": [\"linux\"], \"arch\": [\"amd64\"], \"libc\": \"glibc\" }\n// after\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } } }","handlingStrategy":"validation","validationCode":"if (a?.extensions?.mise?.plugin === 'vfox' && (a.os || a.arch || a.libc)) throw new Error('vfox artifact must be portable');","typeGuard":"const isPortableVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && a.os == null && a.arch == null && a.libc == null;","tryCatchPattern":null,"preventionTips":["Keep platform fields only on native binary artifacts","Document that vfox plugin artifacts are inherently portable","Add manifest linting that flags os/arch/libc on plugin artifacts"],"tags":["packslip","vfox","portability","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"}