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

  1. Use the go backend string printed in the message: `mise use go:<module/path>`
  2. Update mise.toml to replace `aqua:<name>` with `go:<module>`
  3. 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

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


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)