uv/crates/uv-cli/src
John Mumm 5b2c3595a7
Require disambiguated relative paths for `--index` (#14152)
We do not currently support passing index names to `--index` for
installing packages. However, we do accept relative paths that can look
like index names. This PR adds the requirement that `--index` values
must be disambiguated with a prefix (`./` or `../` on Unix and Windows
or `.\\` or `..\\` on Windows). For now, if an ambiguous value is
provided, uv will warn that this will not be supported in the future.

Currently, if you provide an index name like `--index test` when there
is no `test` directory, uv will error with a `Directory not found...`
error. That's not very informative if you thought index names were
supported. The new warning makes the context clearer.

Closes #13921
2025-06-25 10:02:06 +02:00
..
comma.rs Remove trailing commas before brackets (#10740) 2025-01-18 19:56:46 +00:00
compat.rs Turn off `clippy::struct_excessive_bools` rule (#14102) 2025-06-17 12:18:54 +02:00
lib.rs Require disambiguated relative paths for `--index` (#14152) 2025-06-25 10:02:06 +02:00
options.rs Split UV_INDEX on all whitespace (#12820) 2025-04-10 16:22:17 -04:00
version.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00