Avoid persisting uv add calls that result in resolver errors (#5664)

## Summary

Closes https://github.com/astral-sh/uv/issues/5622.
This commit is contained in:
Charlie Marsh 2024-07-31 13:27:34 -04:00 committed by GitHub
parent 54398fa7bc
commit 4b8a127c54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 92 additions and 5 deletions

View file

@ -50,6 +50,12 @@ impl PartialEq for PyProjectToml {
impl Eq for PyProjectToml {}
impl AsRef<[u8]> for PyProjectToml {
fn as_ref(&self) -> &[u8] {
self.raw.as_bytes()
}
}
/// PEP 621 project metadata (`project`).
///
/// See <https://packaging.python.org/en/latest/specifications/pyproject-toml>.