mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
add UV_NO_GITHUB_FAST_PATH
This commit is contained in:
parent
f5382c010b
commit
dc455bfc26
3 changed files with 12 additions and 0 deletions
|
@ -12,6 +12,7 @@ use tracing::debug;
|
|||
use uv_cache_key::{RepositoryUrl, cache_digest};
|
||||
use uv_fs::LockedFile;
|
||||
use uv_git_types::{GitHubRepository, GitOid, GitReference, GitUrl};
|
||||
use uv_static::EnvVars;
|
||||
use uv_version::version;
|
||||
|
||||
use crate::{Fetch, GitSource, Reporter};
|
||||
|
@ -54,6 +55,10 @@ impl GitResolver {
|
|||
url: &GitUrl,
|
||||
client: ClientWithMiddleware,
|
||||
) -> Result<Option<GitOid>, GitResolverError> {
|
||||
if std::env::var_os(EnvVars::UV_NO_GITHUB_FAST_PATH).is_some() {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
let reference = RepositoryReference::from(url);
|
||||
|
||||
// If the URL is already precise, return it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue