jdx/mise · error
Monorepo task paths (like `//path:task` or `:task`) require…
Error message
Monorepo task paths (like `//path:task` or `:task`) require a monorepo root configuration.
To set up monorepo support, add this to your root mise.toml:
{}
Then create task files in subdirectories that will be automatically discovered.
See {} for more information. What it means
Error "Monorepo task paths (like `//path:task` or `:task`) require a monorepo root configuration. To set up monorepo support, add this to your root mise.toml: {} Then create task files in subdirectories that will be automatically discovered. See {} for more information." thrown in jdx/mise.
Solutions
- Add a root mise.toml with `[monorepo] monorepo_root = true` and config_roots globs
- Move task files into subdirectories covered by your config_roots patterns
- See the linked monorepo documentation URL in the error for the exact TOML to paste
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/task/task_list.rs:65 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/94373b66b46ed314.
Report an issue: GitHub.
Appendix: source
Thrown at src/task/task_list.rs:65
.map(|e| e.path().to_path_buf())
})
.collect()
}
/// Split a task spec into name and args
/// e.g., "task arg1 arg2" -> ("task", vec!["arg1", "arg2"])
pub(crate) fn split_task_spec(spec: &str) -> (&str, Vec<String>) {
let mut parts = spec.split_whitespace();
let name = parts.next().unwrap_or("");
let args = parts.map(|s| s.to_string()).collect_vec();
(name, args)
}
/// Validate that monorepo features are properly configured
fn validate_monorepo_setup(config: &Arc<Config>) -> Result<()> {
// Check if a monorepo root is configured
if !config.is_monorepo() {
bail!(
"Monorepo task paths (like `//path:task` or `:task`) require a monorepo root configuration.\n\
\n\
To set up monorepo support, add this to your root mise.toml:\n\
{}\n\
\n\
Then create task files in subdirectories that will be automatically discovered.\n\
See {} for more information.",
style::eyellow(" monorepo_root = true"),
style::eunderline(
"https://mise.jdx.dev/tasks/task-configuration.html#monorepo-support"
)
);
}
Ok(())
}
/// Check if a name is similar to any known CLI subcommands using fuzzy matchingView on GitHub (pinned to 533346cc37)