{"record":{"id":"5b854b0dd761834c","repo":"jdx/mise","slug":"no-packages-requested-for-manager-only","errorCode":null,"errorMessage":"no packages requested for manager '{only}'","messagePattern":"no packages requested for manager '(.+?)'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/system/driver.rs","lineNumber":76,"sourceCode":"/// disabled/unavailable managers, unsatisfiable version pins, and the\n/// confirmation prompt.\npub(crate) async fn run(mgrs: Vec<ManagerPackages>, action: Action, d: &DriverOpts) -> Result<()> {\n    if let Some(only) = &d.manager\n        && !mgrs.iter().any(|mp| mp.manager.name() == only)\n    {\n        // distinguish \"not configured\" from \"filtered out by settings\" —\n        // the aggregation drops managers excluded by\n        // system_packages.managers before we ever see them\n        if let Some(enabled) = &Settings::get().system_packages.managers\n            && !enabled.contains(only)\n        {\n            bail!(\n                \"manager '{only}' is excluded by the system_packages.managers setting \\\n                 (currently: {})\",\n                enabled.join(\", \")\n            );\n        }\n        bail!(\"no packages requested for manager '{only}'\");\n    }\n    if mgrs.is_empty() {\n        info!(\"no bootstrap packages configured in [bootstrap.packages]\");\n        return Ok(());\n    }\n    let opts = InstallOpts {\n        dry_run: d.dry_run,\n        update: d.update,\n    };\n    for mp in mgrs {\n        if let Some(only) = &d.manager\n            && mp.manager.name() != only\n        {\n            continue;\n        }\n        let name = mp.manager.name();\n        if mp.disabled {\n            if d.manager.is_some() {","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/jdx/mise/blob/9dcfcaa0dc8747a2577d3270b69bb9d8313b2807/src/cli/system/driver.rs#L58-L94","documentation":"When --manager <name> is passed but that manager is neither excluded by system_packages.managers (which would produce the more specific error) nor present in the aggregated [bootstrap.packages] list, mise reports that no packages were requested for it. I.e. the manager is allowed, but your config defines no packages for it.","triggerScenarios":"Running `mise system install --manager cargo` when [bootstrap.packages] contains no `cargo:` entries (and cargo is not filtered out by settings) — mgrs simply has no ManagerPackages for that name.","commonSituations":"Expecting a manager to imply its default packages; config files where the [bootstrap.packages] entries for that manager are commented out, mis-indented, or use the wrong key format; empty bootstrap section on a fresh setup.","solutions":["Add packages for the manager under [bootstrap.packages], e.g. `\"cargo:eza\" = \"latest\"` or `packages = [\"cargo:bat\"]`","Check what is actually configured: inspect the [bootstrap.packages] table in your mise.toml","Drop --manager to install/update all configured packages instead of one manager"],"exampleFix":"# before\n# mise.toml has no cargo packages\nmise system install --manager cargo   # fails\n\n# after\n# mise.toml:\n[bootstrap.packages]\n\"cargo:eza\" = \"latest\"\n# then: mise system install --manager cargo","handlingStrategy":"validation","validationCode":"# bash: verify the config actually has packages for the manager\ntoml=\"mise.toml\"\ngrep -q \"^\\[bootstrap\\.packages\\]\" \"$toml\" && grep -q \"^\\s*\\\"\\?$MGR:\" \"$toml\" || { echo \"no [$MGR] packages in $toml\" >&2; exit 2; }\nmise system install --manager \"$MGR\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Add at least one package entry per manager you intend to target with --manager","Validate [bootstrap.packages] syntax (manager:package keys) in config linting"],"tags":["system-packages","bootstrap","empty-list"],"backgroundTag":"no-packages-configured","analyzedSha":"9dcfcaa0dc8747a2577d3270b69bb9d8313b2807","analyzedAt":"2026-08-17T14:28:50.624Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}