Cargo cannot parse azure devops ssh git urls #13622
Labels
A-git
Area: anything dealing with git
C-enhancement
Category: enhancement
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
I'm running into a bit of trouble trying to get a crate from an azure devops registry.
I am able to run the git command that cargo will eventually call successfully,
However, due to this line:
cargo/src/cargo/util/toml_mut/dependency.rs
Line 888 in 8bcecfe
I get the error:
I've tried several variations of the url, but that format seems to be the only one that works. The recommendation from the cargo book does not work and returns this error:
Since cargo is able to parse that format, the above error is what I receive when calling
cargo update
, which circles back to this issue.Also, if I try to use
ssh://<omitted>@ssh.dev.azure.com:v3/<omitted>/<omitted>/<my-repo>
,url::Url::parse
will return:Given how nuanced private git repo urls can be, I feel like
url::Url
might not be the right type at this point and could be refactored w/ a newtype that is more flexible. Would this be open to discussion? (I don't mind contributing this change if a maintainer allows it)The text was updated successfully, but these errors were encountered: