jdx/mise · error
conflicting options for
Error message
conflicting options for {key}: multiple requests share the same install destination What it means
`ensure_compatible_install_requests` groups runtime install requests by install destination (tool_key). If two requests target the same destination but carry different options, the result would be ambiguous, so it bails naming the conflicting key. It runs before runtime installs (install_runtimes, install_missing_runtimes, new, install_all_versions_with_progress).
Solutions
- Remove or align the duplicate requests so all requests for the same destination use identical options.
- Consolidate the tool's configuration into a single place (one mise.toml entry) instead of multiple conflicting ones.
- Check the merged config hierarchy (system/global/project) for conflicting options for that tool.
- If the API is yours, deduplicate requests by tool_key before calling the installer.
Example fix
// before
[tools]
node = { version = "20", options = { flags = "--lts" } }
node = { version = "20" } # duplicate with different options
// after
[tools]
node = { version = "20", options = { flags = "--lts" } } Defensive patterns
Strategy: validation
Validate before calling
let mut by_key: HashMap<String, Options> = HashMap::new();
for r in requests { let k = tool_key(r); if let Some(prev) = by_key.get(&k) { assert_eq!(prev, &r.options(), "conflicting options for {k}"); } by_key.insert(k, r.options()); } Try / catch
match ensure_compatible_install_requests(&requests) { Err(e) if e.to_string().starts_with("conflicting options") => { let key = extract_key(&e); requests.retain(|r| tool_key(r) != key); /* retry */ }, other => other? } Prevention
- Define each tool's options in exactly one config layer.
- Deduplicate tool requests before passing them to install APIs.
- Keep options stable across project and global configs for shared tools.
When it happens
Trigger: Calling one of the install entry points with multiple requests whose `tool_key` matches but whose `options()` differ — e.g. the same tool requested twice with different env/settings/install options.
Common situations: A project config and a global config both requesting the same tool with different flags; a task installing runtimes with options that clash with toolset config; duplicate tool entries with differing options.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- at least one bin path should exist
- bootstrap service ' ' cannot be both masked and running
- bootstrap service ' ' cannot be both masked and enabled
- conflicting bootstrap secret declarations for
- conflicting bootstrap service declarations for
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/9572b4ff7222ef8d.
Report an issue: GitHub.
Appendix: source
Thrown at src/toolset/tool_deps.rs:27
pub(super) type ToolKey = String;
/// Creates a unique key for a ToolRequest
pub(crate) fn tool_key(tr: &ToolRequest) -> ToolKey {
format!("{}@{}", tr.ba().short, tr.version())
}
/// Multiple option variants cannot safely share one install destination.
/// Reject them before any install job starts instead of letting one variant
/// silently satisfy (or race with) another.
pub(crate) fn ensure_compatible_install_requests(requests: &[ToolRequest]) -> Result<()> {
let mut options_by_destination = std::collections::HashMap::new();
for request in requests {
let key = tool_key(request);
let options = request.options();
if let Some(existing) = options_by_destination.get(&key)
&& existing != &options
{
bail!(
"conflicting options for {key}: multiple requests share the same install destination"
);
}
options_by_destination.insert(key, options);
}
Ok(())
}
/// Manages a dependency graph of tools for installation scheduling.
/// Thin wrapper around `DepsGraph<ToolKey, ToolRequest>` with
/// tool-specific dependency resolution.
#[derive(Debug)]
pub(super) struct ToolDeps {
inner: DepsGraph<ToolKey, ToolRequest>,
}
impl ToolDeps {
/// Creates a new ToolDeps from a list of tool requests.View on GitHub (pinned to 533346cc37)