{"record":{"id":"84baae52cb55ac42","repo":"jdx/mise","slug":"package-type-is-not-supported-in-the-aqua-bac","errorCode":null,"errorMessage":"package type `{}` is not supported in the aqua backend. Use the go backend instead{}.","messagePattern":"package type `(.+?)` is not supported in the aqua backend\\. Use the go backend instead(.+?)\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/backend/aqua.rs","lineNumber":5156,"sourceCode":"    match pkg.package_type() {\n        AquaPackageType::Cargo => {\n            bail!(\n                \"package type `cargo` is not supported in the aqua backend. Use the cargo backend instead{}.\",\n                pkg.crate_name\n                    .as_deref()\n                    .filter(|name| !name.is_empty())\n                    .or_else(|| {\n                        pkg.name\n                            .as_deref()\n                            .and_then(|s| s.strip_prefix(\"crates.io/\"))\n                    })\n                    .map(|name| format!(\": cargo:{}\", name.escape_debug()))\n                    .unwrap_or_default()\n            )\n        }\n        AquaPackageType::GoInstall => {\n            let backend = go_install_backend(pkg, version)?;\n            bail!(\n                \"package type `go_install` is not supported in the aqua backend. Use the go backend instead: {backend}.\"\n            )\n        }\n        AquaPackageType::GoBuild => {\n            bail!(\n                \"package type `{}` is not supported in the aqua backend. Use the go backend instead{}.\",\n                pkg.package_type(),\n                pkg.path\n                    .as_ref()\n                    .map(|path| format!(\": go:{path}\"))\n                    .unwrap_or_else(|| {\n                        format!(\": go:github.com/{}/{}\", pkg.repo_owner, pkg.repo_name)\n                    })\n            )\n        }\n        _ => {}\n    }\n    Ok(())","sourceCodeStart":5138,"sourceCodeEnd":5174,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/backend/aqua.rs#L5138-L5174","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","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`)"],"exampleFix":"// before (mise.toml)\n[tools]\n\"aqua:some-go-tool\" = \"latest\"\n\n// after\n[tools]\nsome-go-tool = { version = \"latest\", backend = \"go:github.com/owner/some-go-tool\" }","handlingStrategy":"fallback","validationCode":"// resolve the aqua registry entry type before adding to mise.toml\nconst entry = await registry.lookup(name);\nif (entry.type === 'go_install') console.warn(`Use the go backend instead: mise use go:${entry.path ?? name}`);","typeGuard":null,"tryCatchPattern":"catch (e) {\n  if (e.message.includes('Use the go backend instead')) {\n    const mod = e.message.match(/: (go:[^\\\"]+?)\\.?$/)?.[1];\n    console.error(`Rewrite to ${mod ?? 'the go backend'}.`);\n  }\n}","preventionTips":["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"],"tags":["aqua","go","backend-mismatch"],"backgroundTag":"incompatible-source-type","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"}