diff --git a/crates/distribution-types/src/index_url.rs b/crates/distribution-types/src/index_url.rs index 5de44451e..3b0893fc2 100644 --- a/crates/distribution-types/src/index_url.rs +++ b/crates/distribution-types/src/index_url.rs @@ -171,15 +171,7 @@ impl Display for FlatIndexLocation { } } -/// The index locations to use for fetching packages. -/// -/// By default, uses the PyPI index. -/// -/// "pip treats all package sources equally" (), -/// and so do we, i.e., you can't rely that on any particular order of querying indices. -/// -/// If the fields are none and empty, ignore the package index, instead rely on local archives and -/// caches. +/// The index locations to use for fetching packages. By default, uses the PyPI index. /// /// From a pip perspective, this type merges `--index-url`, `--extra-index-url`, and `--find-links`. #[derive(Debug, Clone)] @@ -344,7 +336,9 @@ impl<'a> IndexUrls { } } - /// Return an iterator over all [`IndexUrl`] entries. + /// Return an iterator over all [`IndexUrl`] entries in order. + /// + /// Prioritizes the extra indexes over the main index. /// /// If `no_index` was enabled, then this always returns an empty /// iterator.