Preserve environment variables in resolved Git dependencies (#2125)

## Summary

Closes https://github.com/astral-sh/uv/issues/2116.
This commit is contained in:
Charlie Marsh 2024-03-01 17:38:34 -08:00 committed by GitHub
parent 5083f51d68
commit e7f336ac53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 93 additions and 6 deletions

View file

@ -93,9 +93,9 @@ impl VerbatimUrl {
/// Set the verbatim representation of the URL.
#[must_use]
pub fn with_given(self, given: String) -> Self {
pub fn with_given(self, given: impl Into<String>) -> Self {
Self {
given: Some(given),
given: Some(given.into()),
..self
}
}