jdx/mise · error

No provider found for git URL

Error message

No provider found for git URL: {}

What it means

resolve_git_url_to_path could not map a task's git URL to a known provider (GitHub/GitLab/etc. URL patterns all failed). mise therefore cannot derive an API endpoint or checkout path for the remote task file and errors out; the git URL format is the input at fault.

Solutions

  1. Use a supported git URL format (e.g. https://github.com/org/repo or github shorthand) for the remote task source
  2. Fix typos in the URL so parse_git can extract the repo and ref
  3. If using a custom/self-hosted host, configure it so a provider matches, or vendor the tasks locally
  4. As a workaround, set task.remote_no_cache to take the parse_git path (URL must still be parseable)

Example fix

// before
[tools.tasks]
url = "git@unsupported.internal:org/tasks.git"
// after
[tools.tasks]
url = "github:org/tasks"
Defensive patterns

Strategy: validation

Validate before calling

// validate a git URL is parseable before resolving
fn looks_like_supported_git_url(url: &str) -> bool {
    url.starts_with("https://")
        && (url.contains("github.com") || url.contains("gitlab.com")
            || RemoteSource::parse_git(url).is_some())
}

Type guard

// Rust
fn parseable_git_source(url: &str) -> bool {
    RemoteSource::parse_git(url).is_some()
}

Try / catch

// Rust
match resolve_git_url_to_path(url).await {
    Ok(artifact) => use(artifact),
    Err(e) if e.to_string().starts_with("No provider found for git URL") => {
        eprintln!("use a supported git URL format for remote tasks");
    }
    Err(e) => return Err(e),
}

Prevention

When it happens

Trigger: Calling resolve_git_url_to_path with a git URL that TaskFileProvidersBuilder-built providers' get_provider() cannot match (when caching is enabled), or that RemoteSource::parse_git cannot parse (when task.remote_no_cache is set) — e.g. unsupported git host or malformed URL.

Common situations: Using a git URL for remote tasks from a provider that mise doesn't support (self-hosted Git instances, SSH-only URLs in an unexpected format), or typos in the URL so it no longer looks like a supported git source.

Related errors


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

Appendix: source

Thrown at src/config/mod.rs:5195

    let Ok(relative_path) = path.strip_prefix(root) else {
        return false;
    };
    let relative_path = relative_path.to_string_lossy().replace('\\', "/");
    let file_name = path
        .file_name()
        .map(|file_name| file_name.to_string_lossy().replace('\\', "/"));
    TOML_CONFIG_MATCHERS.iter().any(|matcher| {
        matcher.is_match(&relative_path) || file_name.as_ref().is_some_and(|f| matcher.is_match(f))
    })
}

async fn resolve_git_url_to_path(git_url: &str) -> Result<TaskFileArtifact> {
    let no_cache = Settings::get().task.remote_no_cache.unwrap_or(false);
    if !no_cache {
        let task_file_providers = TaskFileProvidersBuilder::new().with_cache(true).build();
        return match task_file_providers.get_provider(git_url) {
            Some(provider) => provider.get_local_artifact(git_url).await,
            None => bail!("No provider found for git URL: {}", git_url),
        };
    }

    let source = RemoteSource::parse_git(git_url)
        .ok_or_else(|| eyre!("No provider found for git URL: {}", git_url))?;
    let cache_key = (source.url.clone(), source.git_ref.clone());
    let checkout = REMOTE_TASK_INCLUDE_ARTIFACTS
        .entry(cache_key)
        .or_insert_with(|| Arc::new(OnceCell::new()))
        .clone();
    let checkout = checkout
        .get_or_try_init(|| async {
            let task_file_providers = TaskFileProvidersBuilder::new().with_cache(false).build();
            let provider = task_file_providers
                .get_provider(git_url)
                .ok_or_else(|| eyre!("No provider found for git URL: {}", git_url))?;
            let artifact = provider.get_local_artifact(git_url).await?;
            let checkout_path = artifact

View on GitHub (pinned to 533346cc37)