uv {lock,sync}: propagate index URLs to registry client (#3986)
Otherwise the `uv lock` command wasn't respecting the index URL option. This is a follow-up to #3984, and I believe should now allow #3970 to be merged.
This commit is contained in:
@@ -99,6 +99,7 @@ pub(super) async fn do_lock(
|
||||
// Initialize the registry client.
|
||||
// TODO(zanieb): Support client options e.g. offline, tls, etc.
|
||||
let client = RegistryClientBuilder::new(cache.clone())
|
||||
.index_urls(index_locations.index_urls())
|
||||
.markers(markers)
|
||||
.platform(venv.interpreter().platform())
|
||||
.build();
|
||||
|
||||
@@ -157,6 +157,7 @@ pub(crate) async fn update_environment(
|
||||
// TODO(zanieb): Support client options e.g. offline, tls, etc.
|
||||
let client = RegistryClientBuilder::new(cache.clone())
|
||||
.connectivity(connectivity)
|
||||
.index_urls(index_locations.index_urls())
|
||||
.markers(markers)
|
||||
.platform(venv.interpreter().platform())
|
||||
.build();
|
||||
|
||||
@@ -90,6 +90,7 @@ pub(super) async fn do_sync(
|
||||
// Initialize the registry client.
|
||||
// TODO(zanieb): Support client options e.g. offline, tls, etc.
|
||||
let client = RegistryClientBuilder::new(cache.clone())
|
||||
.index_urls(index_locations.index_urls())
|
||||
.markers(markers)
|
||||
.platform(venv.interpreter().platform())
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user