Warn on requirements.txt-provided arguments in uv run et al (#5364)

## Summary

Also applies to `uv tool run` and `uv tool install`.

Closes https://github.com/astral-sh/uv/issues/5349.
This commit is contained in:
Charlie Marsh 2024-07-23 16:34:01 -04:00 committed by GitHub
parent ada2b2bc29
commit 25c7599030
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 380 additions and 84 deletions

View file

@ -386,6 +386,11 @@ impl<'a> IndexLocations {
self.flat_index.iter()
}
/// Return the `--no-index` flag.
pub fn no_index(&self) -> bool {
self.no_index
}
/// Clone the index locations into a [`IndexUrls`] instance.
pub fn index_urls(&'a self) -> IndexUrls {
IndexUrls {