{"record":{"id":"c320310abc0a86bc","repo":"jdx/mise","slug":"vfox-plugin-artifacts-currently-require-tar-gz-for","errorCode":null,"errorMessage":"vfox plugin artifacts currently require tar.gz format","messagePattern":"vfox plugin artifacts currently require tar\\.gz format","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/plugins/packslip.rs","lineNumber":199,"sourceCode":"            .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!(\n            matches!(\n                entry.entry_type(),\n                jdx_tar::EntryType::File | jdx_tar::EntryType::Directory\n            ),","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/plugins/packslip.rs#L181-L217","documentation":"mise currently only supports vfox plugin archives distributed as gzip-compressed tarballs. A vfox plugin packslip artifact whose format is missing or is anything other than \"tar.gz\" or \"tgz\" (e.g. zip, tar.xz, bare file) is rejected during artifact validation.","triggerScenarios":"Installing a tool whose vfox plugin packslip artifact declares format \"zip\"/\"tar.xz\"/\"tar.bz2\" or omits format entirely.","commonSituations":"Upstream switched release archive formats (e.g. to zstd or xz) breaking older mise versions; authors generating plugin releases as zip files; manifests where format was never filled in for the plugin artifact.","solutions":["Change the vfox plugin artifact's format to \"tar.gz\" (or \"tgz\") and publish the archive in that format","Repackage the existing plugin archive as a gzip tarball if you control the release","Pin to an earlier release that still ships tar.gz","If you are the mise maintainer-side consumer, upgrade mise once support for the new format lands"],"exampleFix":"// before\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } }, \"format\": \"zip\" }\n// after\n{ \"extensions\": { \"mise\": { \"plugin\": \"vfox\" } }, \"format\": \"tar.gz\" }","handlingStrategy":"validation","validationCode":"if (a?.extensions?.mise?.plugin === 'vfox' && !['tar.gz','tgz'].includes(a.format)) throw new Error('vfox artifact must be tar.gz');","typeGuard":"const isTarGzVfox = (a) => a?.extensions?.mise?.plugin === 'vfox' && (a.format === 'tar.gz' || a.format === 'tgz');","tryCatchPattern":null,"preventionTips":["Always publish vfox plugins as gzip tarballs","Lock release automation to tar.gz output","Check mise release notes before changing upstream archive formats"],"tags":["packslip","vfox","archive-format","unsupported-format"],"backgroundTag":"unsupported-enum-value","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"}