mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-01 12:24:15 +00:00
Preserve parsed url in ResolvedDist -> Requirement (#3457)
Lose less information in the `ResolvedDist` -> `Requirement` conversion.
This commit is contained in:
parent
a24124571a
commit
b263fcff9c
7 changed files with 61 additions and 29 deletions
|
|
@ -104,12 +104,17 @@ impl Urls {
|
|||
RequirementSource::Git {
|
||||
repository,
|
||||
reference,
|
||||
precise,
|
||||
subdirectory,
|
||||
url,
|
||||
} => {
|
||||
let mut git_url = GitUrl::new(repository.clone(), reference.clone());
|
||||
if let Some(precise) = precise {
|
||||
git_url = git_url.with_precise(*precise);
|
||||
}
|
||||
let url = VerbatimParsedUrl {
|
||||
parsed_url: ParsedUrl::Git(ParsedGitUrl {
|
||||
url: GitUrl::new(repository.clone(), reference.clone()),
|
||||
url: git_url,
|
||||
subdirectory: subdirectory.clone(),
|
||||
}),
|
||||
verbatim: url.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue