jdx/mise · error
unsupported aqua package format
Error message
unsupported aqua package format: {format} What it means
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.
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
Example fix
// before (custom aqua registry entry)
files:
- name: mytool
src: mytool
format: zipx
// after
format: zip Defensive patterns
Strategy: validation
Validate before calling
// validate custom aqua registry entries before use
const SUPPORTED = ['', 'tar.gz', 'tgz', 'tar.xz', 'tar.bz2', 'zip', 'tar.zst', 'dmg', 'pkg', 'raw'];
if (!SUPPORTED.includes(pkg.format ?? '')) throw new Error(`format "${pkg.format}" is not supported; fix the registry entry`); Try / catch
catch (e) {
if (String(e).includes('unsupported aqua package format')) {
console.error('Check the aqua registry entry\'s format field; update mise or correct your custom registry.');
}
} Prevention
- 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)
When it happens
Trigger: 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.
Common situations: 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.
Understand the failure class
Background: Invalid enum value errors: "Unknown type", "Invalid scope", "must be one of" — when a string is not on the library's allowed list — this error's family across 23 libraries.
Related errors
- {}
- no asset released
- aqua package does not have repo_owner and/or repo_name.
- aqua var ` ` must be a string, got
- archive does not contain registry entries
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/859bcadefec16efa.
Report an issue: GitHub.
Appendix: source
Thrown at src/backend/aqua.rs:3079
Ok(())
}
fn record_cosign_provenance(&self, tv: &mut ToolVersion) {
self.record_provenance(tv, ProvenanceType::Cosign);
}
fn record_provenance(&self, tv: &mut ToolVersion, provenance: ProvenanceType) {
let platform_key = self.get_platform_key();
let pi = tv.lock_platforms.entry(platform_key).or_default();
if pi.provenance.as_ref().is_none_or(|p| *p < provenance) {
pi.provenance = Some(provenance);
}
}
fn effective_extraction_format(pkg: &AquaPackage, format: &str) -> Result<ExtractionFormat> {
let extraction_format = ExtractionFormat::from_ext(format);
if extraction_format.is_none() && !matches!(format, "" | "dmg" | "pkg") {
bail!("unsupported aqua package format: {format}");
}
let extraction_format = extraction_format.unwrap_or(ExtractionFormat::Raw);
if pkg.package_type() == AquaPackageType::GithubArchive
&& extraction_format == ExtractionFormat::Raw
{
// The aqua registry can omit format for GitHub-generated archive downloads.
// Historically Raw reached untar/open_tar, which treated it as gzip-tar.
Ok(ExtractionFormat::TarGz)
} else {
Ok(extraction_format)
}
}
fn install(
&self,
ctx: &InstallContext,
tv: &ToolVersion,
pkg: &AquaPackage,View on GitHub (pinned to 533346cc37)