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:
Charlie Marsh 2024-11-14 09:51:11 -05:00 committed by GitHub
parent 02a7bb43d9
commit b37170df94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 104 additions and 109 deletions

View file

@ -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(