{"record":{"id":"859bcadefec16efa","repo":"jdx/mise","slug":"unsupported-aqua-package-format-format","errorCode":null,"errorMessage":"unsupported aqua package format: {format}","messagePattern":"unsupported aqua package format: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/backend/aqua.rs","lineNumber":3079,"sourceCode":"        Ok(())\n    }\n\n    fn record_cosign_provenance(&self, tv: &mut ToolVersion) {\n        self.record_provenance(tv, ProvenanceType::Cosign);\n    }\n\n    fn record_provenance(&self, tv: &mut ToolVersion, provenance: ProvenanceType) {\n        let platform_key = self.get_platform_key();\n        let pi = tv.lock_platforms.entry(platform_key).or_default();\n        if pi.provenance.as_ref().is_none_or(|p| *p < provenance) {\n            pi.provenance = Some(provenance);\n        }\n    }\n\n    fn effective_extraction_format(pkg: &AquaPackage, format: &str) -> Result<ExtractionFormat> {\n        let extraction_format = ExtractionFormat::from_ext(format);\n        if extraction_format.is_none() && !matches!(format, \"\" | \"dmg\" | \"pkg\") {\n            bail!(\"unsupported aqua package format: {format}\");\n        }\n        let extraction_format = extraction_format.unwrap_or(ExtractionFormat::Raw);\n        if pkg.package_type() == AquaPackageType::GithubArchive\n            && extraction_format == ExtractionFormat::Raw\n        {\n            // The aqua registry can omit format for GitHub-generated archive downloads.\n            // Historically Raw reached untar/open_tar, which treated it as gzip-tar.\n            Ok(ExtractionFormat::TarGz)\n        } else {\n            Ok(extraction_format)\n        }\n    }\n\n    fn install(\n        &self,\n        ctx: &InstallContext,\n        tv: &ToolVersion,\n        pkg: &AquaPackage,","sourceCodeStart":3061,"sourceCodeEnd":3097,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/backend/aqua.rs#L3061-L3097","documentation":"The aqua backend maps a package's `format` field to an extraction strategy. This error is thrown when the registry entry declares a format string that mise's ExtractionFormat parser does not recognize and that is not one of the special-cased values (empty, dmg, pkg). The aqua registry entry is malformed or uses a format mise doesn't support.","triggerScenarios":"Installing an aqua package whose registry entry has `type`/`format` set to an unrecognized extension (e.g. a typo like `tar.zst` unsupported variant, `exe`, `zipx`), or a custom/overridden aqua registry entry with a bad format value.","commonSituations":"Using a custom aqua registry YAML with a misspelled format; an upstream registry change introducing a format before mise supports it; hand-written package overrides in mise.toml pointing at aqua packages with unusual formats.","solutions":["Update mise so the bundled aqua registry and format support are current","Inspect the aqua registry entry for the tool and correct the `format` value to a supported one (e.g. tar.gz, zip, raw)","If it's your custom registry entry, fix the typo or omit `format` (defaults to raw)","Report the unsupported format to the aqua-registry project if it comes from upstream"],"exampleFix":"// before (custom aqua registry entry)\nfiles:\n  - name: mytool\n    src: mytool\nformat: zipx\n\n// after\nformat: zip","handlingStrategy":"validation","validationCode":"// validate custom aqua registry entries before use\nconst SUPPORTED = ['', 'tar.gz', 'tgz', 'tar.xz', 'tar.bz2', 'zip', 'tar.zst', 'dmg', 'pkg', 'raw'];\nif (!SUPPORTED.includes(pkg.format ?? '')) throw new Error(`format \"${pkg.format}\" is not supported; fix the registry entry`);","typeGuard":null,"tryCatchPattern":"catch (e) {\n  if (String(e).includes('unsupported aqua package format')) {\n    console.error('Check the aqua registry entry\\'s format field; update mise or correct your custom registry.');\n  }\n}","preventionTips":["Validate custom registry YAML against the aqua schema before committing it","Keep mise updated so newly supported formats are available","Omit `format` when the asset needs no extraction (defaults to raw)"],"tags":["aqua","registry","unsupported-format"],"backgroundTag":"invalid-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"}