mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-14 12:29:04 +00:00
![]() ## Summary Today, if you have a lockfile that includes conflict markers, we write those markers out to `requirements.txt` in `uv export`. This is problematic, since no tool will ever evaluate those markers correctly downstream. This PR adds handling for the conflict markers, though it's quite involved. Specifically, we have a new reachability algorithm that tracks, for each node, the reachable marker for that node _and_ the marker conditions under which each conflict item is `true` (at that node). I'm slightly worried that this algorithm could be wrong for graphs with cycles, but we only use this logic for lockfiles with conflicts anyway, so I think it's a strict improvement over the status quo. Closes https://github.com/astral-sh/uv/issues/11559. Closes https://github.com/astral-sh/uv/issues/11548. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |