Propagate preview flag to client for `native-auth` feature (#15872)

Somehow propagation of this got dropped during a rebase, so we never
actually used the native store during resolution.

Part of https://github.com/astral-sh/uv/issues/15818
This commit is contained in:
Zanie Blue 2025-09-15 10:51:44 -05:00 committed by GitHub
parent d706c07ae3
commit 0aa3c4e094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -152,8 +152,10 @@ impl BaseClientBuilder<'_> {
connectivity: Connectivity,
native_tls: bool,
allow_insecure_host: Vec<TrustedHost>,
preview: Preview,
) -> Self {
Self {
preview,
allow_insecure_host,
native_tls,
connectivity,

View File

@ -174,6 +174,7 @@ async fn run(mut cli: Cli) -> Result<ExitStatus> {
settings.network_settings.connectivity,
settings.network_settings.native_tls,
settings.network_settings.allow_insecure_host,
settings.preview,
)
.retries_from_env()?;
Some(
@ -438,6 +439,7 @@ async fn run(mut cli: Cli) -> Result<ExitStatus> {
globals.network_settings.connectivity,
globals.network_settings.native_tls,
globals.network_settings.allow_insecure_host.clone(),
globals.preview,
)
.retries_from_env()?;