mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Respect constraints passed in uv tool install --from
(#4563)
I accidentally trimmed this to just the `requirement.name`
This commit is contained in:
parent
b44c47fdab
commit
909b69dfa2
1 changed files with 2 additions and 2 deletions
|
@ -78,13 +78,13 @@ pub(crate) async fn install(
|
|||
false
|
||||
};
|
||||
|
||||
let requirements = [Requirement::from_str(from.name.as_ref())]
|
||||
let requirements = [Ok(from.clone())]
|
||||
.into_iter()
|
||||
.chain(with.iter().map(|name| Requirement::from_str(name)))
|
||||
.collect::<Result<Vec<Requirement<VerbatimParsedUrl>>, _>>()?;
|
||||
|
||||
// TODO(zanieb): Duplicative with the above parsing but needed for `update_environment`
|
||||
let requirements_sources = [RequirementsSource::from_package(from.name.to_string())]
|
||||
let requirements_sources = [RequirementsSource::from_package(from.to_string())]
|
||||
.into_iter()
|
||||
.chain(with.into_iter().map(RequirementsSource::from_package))
|
||||
.collect::<Vec<_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue