uv/crates/uv-resolver
Charlie Marsh c500b78936
Avoid re-adding solutions to forked state (#3967)
## Summary

Running a resolution that required forking was failing due to breaking
an invariant in PubGrub. It looks like we were adding the same
incompatibility multiple times, or something like that. The issue
appears to be that when forking, we modify the current state, then clone
it as the "next state", then push to the "forked states" -- but that
means we're cloning the _modified_ state.

This PR changes the order of operations such that we clone, then modify.
It shouldn't introduce any additional clones though.
2024-06-02 17:58:25 -04:00
..
src Avoid re-adding solutions to forked state (#3967) 2024-06-02 17:58:25 -04:00
tests Add Git resolver in lieu of static hash map (#3954) 2024-05-31 22:44:42 -04:00
Cargo.toml Custom lock-file serialization (#3909) 2024-05-30 19:08:29 +00:00