jdx/mise · error

is not a conflict

Error message

{} is not a conflict

What it means

Thrown when a path passed to `mise dot pull --take-remote` or `--keep-local` does not correspond to any path currently registered as a sync conflict. The command validates every explicitly chosen path against the conflict list from the sync status and fails fast rather than recording a meaningless resolution.

Solutions

  1. Run `mise dot status` and use only paths it lists as conflicted.
  2. If already resolved, no action is needed — omit the flag for that path.
  3. Verify the path is exactly the enrolled local path (after symlink/root mapping) that `mise dot status` reports.

Example fix

before: mise dot pull --take-remote ~/.zshrc (not a conflict) | after: mise dot status, then mise dot pull --take-remote ~/.config/git/config
Defensive patterns

Strategy: validation

Validate before calling

mise dot status  # only pass paths listed as conflicted to --take-remote/--keep-local

Prevention

When it happens

Trigger: Passing a path that is not currently conflicted (already resolved, never diverged, untracked, or a typo) to `mise dot pull --take-remote <path>` or `--keep-local <path>`; the loop at apply.rs:296 checks each requested path against `status.conflicts`.

Common situations: Typo in the path; the conflict was already resolved in a previous pull; the path is tracked but not conflicted; running the flag form when no conflicts exist at all.

Understand the failure class

Background: "Must be a positive integer", "Invalid value", "Unsupported": the invalid-argument-value error family, when a library rejects the value you pass — this error's family across 35 libraries.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/a28df8c94645e1ad. Report an issue: GitHub.

Appendix: source

Thrown at src/system/history/sync/apply.rs:302

                        &conflict.branch_path,
                        remote.as_ref(),
                    )?,
                    live_mode: live_permissions(&local)?,
                    local: saved,
                    remote,
                    live,
                    take_remote: take_remote.contains(&local),
                },
            );
        }
    }
    for path in take_remote.iter().chain(keep_local.iter()) {
        if !status
            .conflicts
            .iter()
            .any(|conflict| roots.locate(&conflict.branch_path).path() == Some(path.as_path()))
        {
            bail!("{} is not a conflict", display_path(path));
        }
    }
    run::refresh(store, tracked, &mut status)?;
    if !req.dry_run {
        run::write_status(state_dir, &status)?;
    }
    if !status.conflicts.is_empty() {
        if req.dry_run {
            // Preview the whole paused setup even when reconciliation
            // cannot yet produce an applicable write set.
            let mut table = MiseTable::new(false, &["Path", "Action", "Group"]);
            for conflict in &status.conflicts {
                if let Some(path) = roots.locate(&conflict.branch_path).path() {
                    table.add_row(vec![
                        display_path(path),
                        "held: unresolved conflict".to_string(),
                        conflict.branch_path.clone(),
                    ]);

View on GitHub (pinned to 533346cc37)