mirror of https://github.com/astral-sh/uv
## Summary This PR extends `[[tool.uv.index]]` to support `--find-links`-style "flat" indexes, so that users can point to such indexes without using `--find-links` _and_ get access to the full functionality of `[[tool.uv.index]]` (e.g., they can now pin packages to `--find-links`-style indexes). Note that, at present, `--find-links` indexes actually have some quirky behavior, in that we combine them into a single entity and then merge the discovered distributions into each Simple API-style index. The motivation here, IIRC, was to match pip's behavior quite closely. I'm interested in _removing_ that behavior, but it'd be breaking (and may also be inconvenient for some use-cases). So, the behavior for indexes passed in via `--find-links` remains completely unchanged. However, `[[tool.uv.index]]` entries with `format = "flat"` are now treated identically to those defined with `format = "simple"` (the default), in that we stop after we find the first-matching index, etc. Closes https://github.com/astral-sh/uv/issues/11634. |
||
|---|---|---|
| .. | ||
| lock | ||
| pubgrub | ||
| resolution | ||
| resolver | ||
| candidate_selector.rs | ||
| dependency_mode.rs | ||
| dependency_provider.rs | ||
| error.rs | ||
| exclude_newer.rs | ||
| exclusions.rs | ||
| flat_index.rs | ||
| fork_indexes.rs | ||
| fork_strategy.rs | ||
| fork_urls.rs | ||
| graph_ops.rs | ||
| lib.rs | ||
| manifest.rs | ||
| marker.rs | ||
| options.rs | ||
| pins.rs | ||
| preferences.rs | ||
| prerelease.rs | ||
| python_requirement.rs | ||
| redirect.rs | ||
| requires_python.rs | ||
| resolution_mode.rs | ||
| universal_marker.rs | ||
| version_map.rs | ||
| yanks.rs | ||