Skip to content

Commit b87a755

Browse files
Add some additional notes to --index-url docs (#8267)
1 parent 6ac5859 commit b87a755

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/configuration/indexes.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ In addition to the `[[tool.uv.index]]` configuration option, uv supports pip-sty
162162
`--extra-index-url` command-line options for compatibility, where `--index-url` defines the default
163163
index and `--extra-index-url` defines additional indexes.
164164

165-
These options can be used in conjunction with the `[[tool.uv.index]]` configuration option, and use
166-
the same prioritization rules:
165+
These options can be used in conjunction with the `[[tool.uv.index]]` configuration option, and
166+
follow the same prioritization rules:
167167

168168
- The default index is always treated as lowest priority, whether defined via the legacy
169169
`--index-url` argument, the recommended `--default-index` argument, or a `[[tool.uv.index]]` entry
@@ -172,4 +172,5 @@ the same prioritization rules:
172172
`--extra-index-url` argument, the recommended `--index` argument, or `[[tool.uv.index]]` entries.
173173

174174
In effect, `--index-url` and `--extra-index-url` can be thought of as unnamed `[[tool.uv.index]]`
175-
entries, with `default = true` enabled for the former.
175+
entries, with `default = true` enabled for the former. In that context, `--index-url` maps to
176+
`--default-index`, and `--extra-index-url` maps to `--index`.

0 commit comments

Comments
 (0)