diff --git a/crates/uv-auth/src/lib.rs b/crates/uv-auth/src/lib.rs index 71cd6025a8bb..81fd0aeb85f4 100644 --- a/crates/uv-auth/src/lib.rs +++ b/crates/uv-auth/src/lib.rs @@ -10,7 +10,6 @@ pub use keyring::KeyringProvider; pub use middleware::AuthMiddleware; use netloc::NetLoc; use once_cell::sync::Lazy; -use url::Url; // TODO(zanieb): Consider passing a cache explicitly throughout @@ -18,10 +17,3 @@ use url::Url; /// /// This is used to share credentials across uv clients. pub(crate) static CREDENTIALS_CACHE: Lazy = Lazy::new(CredentialsCache::default); - -/// Populate the global authentication store with credentials on a URL, if there are any. -/// -/// Returns `true` if the store was updated. -pub fn store_credentials_from_url(_url: &Url) -> bool { - true -} diff --git a/crates/uv/src/commands/pip_compile.rs b/crates/uv/src/commands/pip_compile.rs index 6def5e78ac6d..8d3d5847df20 100644 --- a/crates/uv/src/commands/pip_compile.rs +++ b/crates/uv/src/commands/pip_compile.rs @@ -17,7 +17,6 @@ use tracing::debug; use distribution_types::{IndexLocations, LocalEditable, LocalEditables, Verbatim}; use platform_tags::Tags; use requirements_txt::EditableRequirement; -use uv_auth::store_credentials_from_url; use uv_cache::Cache; use uv_client::{BaseClientBuilder, Connectivity, FlatIndexClient, RegistryClientBuilder}; use uv_configuration::KeyringProviderType; @@ -211,11 +210,6 @@ pub(crate) async fn pip_compile( let index_locations = index_locations.combine(index_url, extra_index_urls, find_links, no_index); - // Add all authenticated sources to the store. - for url in index_locations.urls() { - store_credentials_from_url(url); - } - // Initialize the registry client. let client = RegistryClientBuilder::new(cache.clone()) .native_tls(native_tls) diff --git a/crates/uv/src/commands/pip_install.rs b/crates/uv/src/commands/pip_install.rs index acbc3efd1b6c..db24b28d1b10 100644 --- a/crates/uv/src/commands/pip_install.rs +++ b/crates/uv/src/commands/pip_install.rs @@ -19,7 +19,6 @@ use pep508_rs::{MarkerEnvironment, Requirement}; use platform_tags::Tags; use pypi_types::{Metadata23, Yanked}; use requirements_txt::EditableRequirement; -use uv_auth::store_credentials_from_url; use uv_cache::Cache; use uv_client::{ BaseClientBuilder, Connectivity, FlatIndexClient, RegistryClient, RegistryClientBuilder, @@ -204,11 +203,6 @@ pub(crate) async fn pip_install( let index_locations = index_locations.combine(index_url, extra_index_urls, find_links, no_index); - // Add all authenticated sources to the store. - for url in index_locations.urls() { - store_credentials_from_url(url); - } - // Initialize the registry client. let client = RegistryClientBuilder::new(cache.clone()) .native_tls(native_tls) diff --git a/crates/uv/src/commands/pip_sync.rs b/crates/uv/src/commands/pip_sync.rs index aa01947825e0..e4d0d9ecf747 100644 --- a/crates/uv/src/commands/pip_sync.rs +++ b/crates/uv/src/commands/pip_sync.rs @@ -14,7 +14,6 @@ use install_wheel_rs::linker::LinkMode; use platform_tags::Tags; use pypi_types::Yanked; use requirements_txt::EditableRequirement; -use uv_auth::store_credentials_from_url; use uv_cache::{ArchiveTarget, ArchiveTimestamp, Cache}; use uv_client::{ BaseClientBuilder, Connectivity, FlatIndexClient, RegistryClient, RegistryClientBuilder, @@ -151,11 +150,6 @@ pub(crate) async fn pip_sync( let index_locations = index_locations.combine(index_url, extra_index_urls, find_links, no_index); - // Add all authenticated sources to the store. - for url in index_locations.urls() { - store_credentials_from_url(url); - } - // Initialize the registry client. let client = RegistryClientBuilder::new(cache.clone()) .native_tls(native_tls) diff --git a/crates/uv/src/commands/venv.rs b/crates/uv/src/commands/venv.rs index 6f2e6b15eaea..e228807cdbd1 100644 --- a/crates/uv/src/commands/venv.rs +++ b/crates/uv/src/commands/venv.rs @@ -13,7 +13,6 @@ use thiserror::Error; use distribution_types::{DistributionMetadata, IndexLocations, Name, ResolvedDist}; use pep508_rs::Requirement; -use uv_auth::store_credentials_from_url; use uv_cache::Cache; use uv_client::{Connectivity, FlatIndexClient, RegistryClientBuilder}; use uv_configuration::KeyringProviderType; @@ -144,11 +143,6 @@ async fn venv_impl( // Extract the interpreter. let interpreter = venv.interpreter(); - // Add all authenticated sources to the store. - for url in index_locations.urls() { - store_credentials_from_url(url); - } - // Instantiate a client. let client = RegistryClientBuilder::new(cache.clone()) .native_tls(native_tls)