mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-14 20:39:37 +00:00
Rename ResolutionGraph
to ResolverOutput
(#9103)
## Summary As discussed in Discord... This struct has evolved to include a lot of information apart from the `petgraph::Graph`. And I want to add a graph to the simplified `Resolution` type. So I think this name makes more sense.
This commit is contained in:
parent
02a7bb43d9
commit
b37170df94
12 changed files with 104 additions and 109 deletions
|
@ -197,7 +197,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
EmptyInstalledPackages,
|
||||
DistributionDatabase::new(self.client, self, self.concurrency.downloads),
|
||||
)?;
|
||||
let graph = resolver.resolve().await.with_context(|| {
|
||||
let resolution = Resolution::from(resolver.resolve().await.with_context(|| {
|
||||
format!(
|
||||
"No solution found when resolving: {}",
|
||||
requirements
|
||||
|
@ -205,8 +205,8 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
.map(|requirement| format!("`{requirement}`"))
|
||||
.join(", ")
|
||||
)
|
||||
})?;
|
||||
Ok(Resolution::from(graph))
|
||||
})?);
|
||||
Ok(resolution)
|
||||
}
|
||||
|
||||
#[instrument(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue