jdx/mise · error

no configured repo matched path

Error message

no configured repo matched path: {filter}

What it means

mise's bootstrap command filters configured repos by path arguments. After collecting repos, it verifies that every path filter passed on the command line actually matches a configured repo — either by exact raw path or by the tilde/variable-expanded path. If any filter matches nothing, mise aborts rather than silently returning an empty or partial repo set.

Solutions

  1. Run `mise bootstrap` with no filter first to list configured repos and see the exact paths mise knows about
  2. Correct the path argument to match a configured repo's path exactly (absolute path is safest)
  3. Update the repo config entry if the repo was moved or renamed
  4. Check for mismatched path forms (tilde vs absolute, trailing slash) between the argument and the configured value

Example fix

// before
$ mise bootstrap ~/proj   # fails if config stores /home/me/proj differently
// after
$ mise bootstrap /home/me/proj  # exact configured path
Defensive patterns

Strategy: validation

Validate before calling

mise bootstrap 2>/dev/null | awk '{print $1}' | grep -Fxq "$path" || echo "not configured: $path"

Type guard

validate_repo_filter() { local p="$1"; mise bootstrap 2>/dev/null | grep -Fq "$p"; }

Prevention

When it happens

Trigger: Running `mise bootstrap <path>` (or multiple paths) where at least one path is not registered in mise's configured repos: a typo'd path, a repo that was removed from the config, a path passed unexpanded (e.g. `~/repo` when config stores the absolute path — though expansion is attempted), or a relative path that doesn't string-match the configured absolute path.

Common situations: Developers rename or move repo directories and forget to update the bootstrap config; they pass shell-tilde paths in scripts where the configured entry uses a different form; or CI passes a path from an environment variable that resolves differently than the configured entry.

Understand the failure class

Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.

Related errors


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

Appendix: source

Thrown at src/cli/bootstrap.rs:4375

        let repos = filter_repos(system::repos_from_config(&config), &self.paths)?;
        system::repos::exec(&repos, &self.command, self.dry_run, self.continue_on_error).await
    }
}

fn filter_repos(
    repos: Vec<system::repos::RepoRequest>,
    filters: &[String],
) -> Result<Vec<system::repos::RepoRequest>> {
    if filters.is_empty() {
        return Ok(repos);
    }
    for filter in filters {
        let expanded = crate::file::replace_path(filter);
        if !repos
            .iter()
            .any(|repo| repo.path_raw == *filter || repo.path == expanded)
        {
            eyre::bail!("no configured repo matched path: {filter}");
        }
    }
    Ok(repos
        .into_iter()
        .filter(|repo| {
            filters.iter().any(|filter| {
                repo.path_raw == *filter || repo.path == crate::file::replace_path(filter)
            })
        })
        .collect())
}

impl BootstrapReposStatus {
    async fn run(self) -> Result<()> {
        let config = Config::get().await?;
        let repos = system::repos_from_config(&config);
        let mut any_missing = false;
        let mut rows: Vec<Vec<String>> = vec![];

View on GitHub (pinned to 533346cc37)