mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-17 02:52:45 +00:00
Update pubgrub to new add_incompatibility_from_dependencies (#4062)
We had previously changed the signature of `DependencyProvider::get_dependencies` to return an iterator instead of a hashmap to avoid the conversion cost from our dependencies `Vec` to the pubgrub's hashmap. These changes are difficult to make in pubgrub since they complicate the public api. But we don't actually use `DependencyProvider::get_dependencies`, so we rolled those customizations back in https://github.com/pubgrub-rs/pubgrub/pull/226 and instead opted to change only the internal `add_incompatibility_from_dependencies` method that we exposed in our fork. This aligns us closer with upstream, removes the design questions about `DependencyProvider` from our concerns and reduces our diff (not counting the github action) to +36 -12.
This commit is contained in:
parent
9f1b592fca
commit
8596525d97
3 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ impl DependencyProvider for UvDependencyProvider {
|
|||
&self,
|
||||
_package: &Self::P,
|
||||
_version: &Self::V,
|
||||
) -> Result<Dependencies<Vec<(Self::P, Self::VS)>, Self::M>, Self::Err> {
|
||||
) -> Result<Dependencies<Self::P, Self::VS, Self::M>, Self::Err> {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue