diff --git a/src/install_pypi.rs b/src/install_pypi.rs index ef4eec9d1..ff1c06402 100644 --- a/src/install_pypi.rs +++ b/src/install_pypi.rs @@ -652,7 +652,7 @@ pub async fn update_python_distributions( // Resolve the flat indexes from `--find-links`. let flat_index = { let client = FlatIndexClient::new(®istry_client, &uv_context.cache); - let indexes = index_locations.indexes().map(|index| index.url()); + let indexes = index_locations.flat_indexes().map(|index| index.url()); let entries = client.fetch(indexes).await.into_diagnostic()?; FlatIndex::from_entries( entries,