jdx/mise · error
package type ` ` is not supported in the aqua backend. Use…
Error message
package type `{}` is not supported in the aqua backend. Use the go backend instead{}. What it means
Aqua registry entries typed `go_install` install Go packages via `go install`. The aqua backend does not build Go packages, so `validate()` rejects them and constructs the equivalent mise go backend string (module path + version) to tell the user exactly what to use instead.
Solutions
- Use the go backend string printed in the message: `mise use go:<module/path>`
- Update mise.toml to replace `aqua:<name>` with `go:<module>`
- Ensure the Go toolchain is installed (mise can manage it: `mise use go@latest`)
Example fix
// before (mise.toml)
[tools]
"aqua:some-go-tool" = "latest"
// after
[tools]
some-go-tool = { version = "latest", backend = "go:github.com/owner/some-go-tool" } Defensive patterns
Strategy: fallback
Validate before calling
// resolve the aqua registry entry type before adding to mise.toml
const entry = await registry.lookup(name);
if (entry.type === 'go_install') console.warn(`Use the go backend instead: mise use go:${entry.path ?? name}`); Try / catch
catch (e) {
if (e.message.includes('Use the go backend instead')) {
const mod = e.message.match(/: (go:[^\"]+?)\.?$/)?.[1];
console.error(`Rewrite to ${mod ?? 'the go backend'}.`);
}
} Prevention
- Use go: backend shorthand directly for go_install/go_build typed tools
- Keep Go installed via mise so go-backend installs work out of the box
- Check registry entry `type` when porting aqua configurations
When it happens
Trigger: Installing `aqua:<pkg>` where the registry entry's package type is `go_install`; referencing an aqua shorthand for a Go tool that has no prebuilt release assets.
Common situations: Go tools published only as module paths (no binary releases); copying aqua-based configs into mise; registry entries switched to go_install upstream when binary releases stopped.
Understand the failure class
Background: "is not a compatible type" / "cannot merge" errors: when a value's type doesn't match what the library requires — this error's family across 65 libraries.
Related errors
- package type `cargo` is not supported in the aqua backend…
- package type `go_install` is not supported in the aqua…
- aqua package does not have repo_owner and/or repo_name.
- aqua var ` ` must be a string, got
- at least one bin path should exist
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/84baae52cb55ac42.
Report an issue: GitHub.
Appendix: source
Thrown at src/backend/aqua.rs:5156
match pkg.package_type() {
AquaPackageType::Cargo => {
bail!(
"package type `cargo` is not supported in the aqua backend. Use the cargo backend instead{}.",
pkg.crate_name
.as_deref()
.filter(|name| !name.is_empty())
.or_else(|| {
pkg.name
.as_deref()
.and_then(|s| s.strip_prefix("crates.io/"))
})
.map(|name| format!(": cargo:{}", name.escape_debug()))
.unwrap_or_default()
)
}
AquaPackageType::GoInstall => {
let backend = go_install_backend(pkg, version)?;
bail!(
"package type `go_install` is not supported in the aqua backend. Use the go backend instead: {backend}."
)
}
AquaPackageType::GoBuild => {
bail!(
"package type `{}` is not supported in the aqua backend. Use the go backend instead{}.",
pkg.package_type(),
pkg.path
.as_ref()
.map(|path| format!(": go:{path}"))
.unwrap_or_else(|| {
format!(": go:github.com/{}/{}", pkg.repo_owner, pkg.repo_name)
})
)
}
_ => {}
}
Ok(())View on GitHub (pinned to 533346cc37)