Skip to content

Commit

Permalink
Respect --native-tls in venv (#2433)
Browse files Browse the repository at this point in the history
Closes #2432.
  • Loading branch information
charliermarsh authored Mar 13, 2024
1 parent 1d63b1c commit 05688ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/uv/src/commands/venv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub(crate) async fn venv(
connectivity: Connectivity,
seed: bool,
exclude_newer: Option<DateTime<Utc>>,
native_tls: bool,
cache: &Cache,
printer: Printer,
) -> Result<ExitStatus> {
Expand All @@ -52,6 +53,7 @@ pub(crate) async fn venv(
connectivity,
seed,
exclude_newer,
native_tls,
cache,
printer,
)
Expand Down Expand Up @@ -96,6 +98,7 @@ async fn venv_impl(
connectivity: Connectivity,
seed: bool,
exclude_newer: Option<DateTime<Utc>>,
native_tls: bool,
cache: &Cache,
printer: Printer,
) -> miette::Result<ExitStatus> {
Expand Down Expand Up @@ -139,6 +142,7 @@ async fn venv_impl(

// Instantiate a client.
let client = RegistryClientBuilder::new(cache.clone())
.native_tls(native_tls)
.index_urls(index_locations.index_urls())
.keyring_provider(keyring_provider)
.connectivity(connectivity)
Expand Down
1 change: 1 addition & 0 deletions crates/uv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,7 @@ async fn run() -> Result<ExitStatus> {
},
args.seed,
args.exclude_newer,
cli.native_tls,
&cache,
printer,
)
Expand Down

0 comments on commit 05688ca

Please sign in to comment.