pubgrub-rs / pubgrub

PubGrub version solving algorithm implemented in Rust
https://pubgrub-rs.github.io/pubgrub/pubgrub/
Mozilla Public License 2.0
337 stars 29 forks source link

Rename dependencies type to available and unavailable #216

Closed konstin closed 1 month ago

konstin commented 1 month ago

In uv, dependencies are either available or unavailable. They are not unknown, but rather missing due to some brokenness: We're offline but the dep is not cached, the version list failed to deserialize, etc. (https://github.com/astral-sh/uv/blob/0b84eb01408eb0e90b5720b027359aac10708665/crates/uv-resolver/src/resolver/mod.rs#L945-L996). This change is a rename of the variants of Dependencies to reflect that, upstreaming the change from uv.

Eh2406 commented 1 month ago

Seams good to me but @mpizenberg is the naming wizard.