jdx/mise · info

not set up

Error message

not set up

What it means

During interactive onboarding from git, mise asks the user to confirm 'Set this machine up from the repository?'. If the user declines (or a non-interactive call yields no confirmation), `run` aborts with the terse message 'not set up' instead of applying the repository's history.

Solutions

  1. Re-run the onboarding command and answer yes at the confirmation prompt
  2. Use the `--yes` flag (or equivalent) to pre-confirm the setup
  3. Skip onboarding if the machine should not inherit repository history

Example fix

// before: non-interactive run auto-declines
mise dot origin ...
// after: pre-confirm
mise dot origin ... --yes
Defensive patterns

Strategy: try-catch

Try / catch

match result {
    Err(e) if e.to_string() == "not set up" => eprintln!("onboarding was declined; re-run and confirm"),
    Err(e) => return Err(e),
    Ok(v) => v,
}

Prevention

When it happens

Trigger: `mise dot` onboarding via from_git reaches the `confirmed()` prompt and the user answers no, or confirmation is not given in a non-interactive context.

Common situations: User mistakenly answers 'n' at the prompt; running onboarding inside a script where the prompt cannot be answered; a TTY-less CI run auto-declining the prompt.

Understand the failure class

Background: "--flag is required" and "must specify" CLI errors: how missing-required-flag validation works and how to fix it — this error's family across 20 libraries.

Related errors


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

Appendix: source

Thrown at src/system/history/sync/onboard.rs:339

    request.dry_run = true;
    // Pending decisions belong only to this preview store.
    run::sync(&planning_store, &tracked, &request)?;
    let mut preview = ApplyRequest::automatic();
    preview.automatic = false;
    preview.dry_run = true;
    preview.plan_only = true;
    apply::apply(&planning_store, &tracked, &preview).await?;
    if onboarding.dry_run {
        let preview_config = Some(preview_configuration(&planning_store)?);
        miseprintln!("Dry run: nothing was changed.");
        return Ok(Outcome {
            preview_config,
            durable_access: true,
            setup_held: false,
        });
    }
    if !super::origin::confirmed(onboarding.yes, "Set this machine up from the repository?")? {
        bail!("not set up");
    }

    // Recompute after confirmation against current local files and remote
    // refs; never apply a stale preview or restore over a watcher's new state.
    refuse_other_connection(store, &onboarding.origin, &onboarding.branch)?;
    let applied = if onboarding.replace_history {
        let operation =
            crate::system::history::scope::OperationScope::begin_replacement_apply().await?;
        let _sync = run::lock(store)?;
        let previous_status = run::read_status(state_dir)?;
        let repo = store
            .repo()
            .ok_or_else(|| eyre::eyre!("setup requires git"))?;
        let previous_upstream = repo.ref_oid(UPSTREAM_REF)?;
        let previous_sync_state = super::state::load(repo)?;
        seed_confirmed_fetch_locked(store, &planning_store)?;
        let replacement = detach_local_history(store)?;
        if let Some(replacement) = &replacement {

View on GitHub (pinned to 533346cc37)