mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-02 04:48:18 +00:00
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:
parent
ada2b2bc29
commit
25c7599030
11 changed files with 380 additions and 84 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue