Avoid updating incorrect dependencies for sorted uv add (#6939)

## Summary

The indexes stored in the edits is wrong now that we add dependencies
out-of-order.

Closes https://github.com/astral-sh/uv/issues/6933.
This commit is contained in:
Charlie Marsh 2024-09-02 14:21:25 -04:00 committed by GitHub
parent 42a4d80a63
commit cbe2827e97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 52 additions and 14 deletions

View file

@ -486,7 +486,7 @@ impl Source {
}
/// The type of a dependency in a `pyproject.toml`.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum DependencyType {
/// A dependency in `project.dependencies`.
Production,