jdx/mise · error
mise prune --monorepo is not implemented yet
Error message
mise prune --monorepo is not implemented yet
What it means
`mise prune` accepts --monorepo at the CLI layer (the flag is annotated as a placeholder for future monorepo pruning) but the run body guards it with unimplemented!(), so any invocation that passes the flag aborts instead of pruning.
Solutions
- Drop --monorepo and run `mise prune` inside each project that needs pruning
- Prune specific tools with `mise prune --tools`
- Watch for monorepo pruning support in future mise releases
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/cli/prune.rs:77 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/5f9dbd76c35749d4.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/prune.rs:77
pub dry_run_code: bool,
/// Placeholder for future monorepo pruning; `mise prune --monorepo` is not implemented yet.
#[usage(long, verbatim_doc_comment)]
pub monorepo: bool,
/// Prune only unused versions of tools
#[usage(long)]
pub tools: bool,
}
impl Prune {
pub(super) fn is_dry_run(&self) -> bool {
self.dry_run || self.dry_run_code
}
pub(crate) async fn run(self) -> Result<()> {
if self.monorepo {
unimplemented!("mise prune --monorepo is not implemented yet");
}
let mut config = Config::get().await?;
if self.configs || !self.tools {
self.prune_configs()?;
}
if self.tools || !self.configs {
let backends = self
.installed_tool
.as_ref()
.map(|it| it.iter().map(|ta| ta.ba.as_ref()).collect());
let tools = backends.unwrap_or_default();
let (to_delete, needed) = prunable_tools_with_sources(&config, tools).await?;
let has_work = !to_delete.is_empty();
let explain = self.is_dry_run().then_some(&needed);
delete(
&config,
self.is_dry_run(),
to_delete,View on GitHub (pinned to 533346cc37)