From fb620f28a500a27de3c3726e87a652a656a0dd38 Mon Sep 17 00:00:00 2001 From: Tim de Jager Date: Tue, 12 Nov 2024 14:20:45 +0100 Subject: [PATCH] fix: dont use index as a flat index (#2465) --- src/install_pypi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,