mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Support lossless serialization for Git dependencies in lockfile (#3630)
## Summary This PR adds lossless deserialization for `GitSourceDist` distributions in the lockfile. Specifically, we now properly preserve the requested revision, the subdirectory, and the precise Git commit SHA. ## Test Plan `cargo test`
This commit is contained in:
parent
0f67a6ceea
commit
0d512be46c
3 changed files with 182 additions and 30 deletions
|
@ -1,7 +1,7 @@
|
|||
use std::str::FromStr;
|
||||
|
||||
/// A complete Git SHA, i.e., a 40-character hexadecimal representation of a Git commit.
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct GitSha(git2::Oid);
|
||||
|
||||
impl GitSha {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue