{"record":{"id":"33a59dafa597b54c","repo":"jdx/mise","slug":"no-provider-found-for-git-url","errorCode":null,"errorMessage":"No provider found for git URL: {}","messagePattern":"No provider found for git URL: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/config/mod.rs","lineNumber":5195,"sourceCode":"    let Ok(relative_path) = path.strip_prefix(root) else {\n        return false;\n    };\n    let relative_path = relative_path.to_string_lossy().replace('\\\\', \"/\");\n    let file_name = path\n        .file_name()\n        .map(|file_name| file_name.to_string_lossy().replace('\\\\', \"/\"));\n    TOML_CONFIG_MATCHERS.iter().any(|matcher| {\n        matcher.is_match(&relative_path) || file_name.as_ref().is_some_and(|f| matcher.is_match(f))\n    })\n}\n\nasync fn resolve_git_url_to_path(git_url: &str) -> Result<TaskFileArtifact> {\n    let no_cache = Settings::get().task.remote_no_cache.unwrap_or(false);\n    if !no_cache {\n        let task_file_providers = TaskFileProvidersBuilder::new().with_cache(true).build();\n        return match task_file_providers.get_provider(git_url) {\n            Some(provider) => provider.get_local_artifact(git_url).await,\n            None => bail!(\"No provider found for git URL: {}\", git_url),\n        };\n    }\n\n    let source = RemoteSource::parse_git(git_url)\n        .ok_or_else(|| eyre!(\"No provider found for git URL: {}\", git_url))?;\n    let cache_key = (source.url.clone(), source.git_ref.clone());\n    let checkout = REMOTE_TASK_INCLUDE_ARTIFACTS\n        .entry(cache_key)\n        .or_insert_with(|| Arc::new(OnceCell::new()))\n        .clone();\n    let checkout = checkout\n        .get_or_try_init(|| async {\n            let task_file_providers = TaskFileProvidersBuilder::new().with_cache(false).build();\n            let provider = task_file_providers\n                .get_provider(git_url)\n                .ok_or_else(|| eyre!(\"No provider found for git URL: {}\", git_url))?;\n            let artifact = provider.get_local_artifact(git_url).await?;\n            let checkout_path = artifact","sourceCodeStart":5177,"sourceCodeEnd":5213,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/config/mod.rs#L5177-L5213","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Use a supported git URL format (e.g. https://github.com/org/repo or github shorthand) for the remote task source","Fix typos in the URL so parse_git can extract the repo and ref","If using a custom/self-hosted host, configure it so a provider matches, or vendor the tasks locally","As a workaround, set task.remote_no_cache to take the parse_git path (URL must still be parseable)"],"exampleFix":"// before\n[tools.tasks]\nurl = \"git@unsupported.internal:org/tasks.git\"\n// after\n[tools.tasks]\nurl = \"github:org/tasks\"","handlingStrategy":"validation","validationCode":"// validate a git URL is parseable before resolving\nfn looks_like_supported_git_url(url: &str) -> bool {\n    url.starts_with(\"https://\")\n        && (url.contains(\"github.com\") || url.contains(\"gitlab.com\")\n            || RemoteSource::parse_git(url).is_some())\n}","typeGuard":"// Rust\nfn parseable_git_source(url: &str) -> bool {\n    RemoteSource::parse_git(url).is_some()\n}","tryCatchPattern":"// Rust\nmatch resolve_git_url_to_path(url).await {\n    Ok(artifact) => use(artifact),\n    Err(e) if e.to_string().starts_with(\"No provider found for git URL\") => {\n        eprintln!(\"use a supported git URL format for remote tasks\");\n    }\n    Err(e) => return Err(e),\n}","preventionTips":["Use https git URLs (or documented shorthand) from supported hosts for remote tasks","Test new remote task URLs with `mise tasks ls` before depending on them","Vendor tasks locally when using self-hosted git instances without provider support"],"tags":["git","url","task","provider","remote"],"backgroundTag":"unsupported-url","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}