{"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":5036,"sourceCode":"                    .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(())\n}\n\nfn go_install_backend(pkg: &AquaPackage, version: &str) -> Result<String> {\n    let path = match pkg.path.as_deref() {\n        Some(path) => pkg.parse_aqua_str(path, version, &Default::default(), os(), arch())?,","sourceCodeStart":5018,"sourceCodeEnd":5054,"githubUrl":"https://github.com/jdx/mise/blob/afd2eddd3a50c16190efc1c7e94404b48f72af57/src/backend/aqua.rs#L5018-L5054","documentation":"Same refusal as the go_install case, but for AquaPackageType::GoBuild: the aqua package asks for a Go build from source, which the aqua backend cannot perform. mise bails with the package type and, when the package declares a path, appends a `go:<path>` backend hint to use instead.","triggerScenarios":"Installing an aqua registry tool whose package type is `go_build` via `mise install`/`mise use aqua:...`; the bail fires in the GoBuild arm of the package-type match in src/backend/aqua.rs.","commonSituations":"Tools that publish no prebuilt binaries and are marked go_build in the aqua registry; users migrating aqua.yaml tool lists to mise.","solutions":["Use the go backend instead: `mise use go:<module-path>` (the error suffix shows the exact path when pkg.path is set).","Ensure the Go toolchain is installed (`mise use go`) before installing.","Prefer an aqua package that ships prebuilt release assets if one exists."],"exampleFix":"// before\nmise use aqua:github.com/owner/tool\n\n// after\nmise use go:github.com/owner/tool/cmd/tool","handlingStrategy":"validation","validationCode":"# before installing, confirm the aqua package is not go_build\nmise ls-remote \"aqua:$pkg\" || echo \"fall back to go:$pkg\"","typeGuard":null,"tryCatchPattern":"mise use \"$pkg\" || mise use \"go:${pkg#aqua:}\"","preventionTips":["Audit aqua: entries in mise.toml for go_build/go_install package types.","Use go: backend references for any source-built Go tool.","Pin release-asset versions when a tool publishes prebuilt binaries."],"tags":["aqua","go","unsupported-package-type","backend"],"backgroundTag":"unsupported-operation","analyzedSha":"afd2eddd3a50c16190efc1c7e94404b48f72af57","analyzedAt":"2026-09-09T01:38:25.179Z","contentChangedAt":"2026-09-09T01:38:25.179Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}