From 4c59aefdb7674592a5b4ce5f41e161cdc043ecf6 Mon Sep 17 00:00:00 2001 From: konsti Date: Mon, 18 Mar 2024 13:33:43 +0100 Subject: [PATCH] Add missing platform entries to subcommands (#2507) Fixup for #2493 --- crates/uv/src/commands/pip_install.rs | 1 + crates/uv/src/commands/pip_sync.rs | 1 + crates/uv/src/commands/venv.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/crates/uv/src/commands/pip_install.rs b/crates/uv/src/commands/pip_install.rs index 5effd07a0..1bb02246f 100644 --- a/crates/uv/src/commands/pip_install.rs +++ b/crates/uv/src/commands/pip_install.rs @@ -193,6 +193,7 @@ pub(crate) async fn pip_install( .index_urls(index_locations.index_urls()) .keyring_provider(keyring_provider) .markers(markers) + .platform(interpreter.platform()) .build(); // Resolve the flat indexes from `--find-links`. diff --git a/crates/uv/src/commands/pip_sync.rs b/crates/uv/src/commands/pip_sync.rs index 714ea20d4..aae5a3bf1 100644 --- a/crates/uv/src/commands/pip_sync.rs +++ b/crates/uv/src/commands/pip_sync.rs @@ -127,6 +127,7 @@ pub(crate) async fn pip_sync( .index_urls(index_locations.index_urls()) .keyring_provider(keyring_provider) .markers(venv.interpreter().markers()) + .platform(venv.interpreter().platform()) .build(); // Resolve the flat indexes from `--find-links`. diff --git a/crates/uv/src/commands/venv.rs b/crates/uv/src/commands/venv.rs index c1045e50f..1bd6ca51f 100644 --- a/crates/uv/src/commands/venv.rs +++ b/crates/uv/src/commands/venv.rs @@ -152,6 +152,7 @@ async fn venv_impl( .keyring_provider(keyring_provider) .connectivity(connectivity) .markers(interpreter.markers()) + .platform(interpreter.platform()) .build(); // Resolve the flat indexes from `--find-links`.