-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot parse "scp-style" git URLs #3014
Comments
Thanks for the report! I believe this is a duplicate of #1851, so I'm going to close in favor of that for now. I also think that the url crate may strive to be more standards-driven in the sense that it may not ever parse these kinds of URLs. That being said, I'd be totally fine adding that sort of parsing to Cargo, as it seems quite appropriate to add! For now though you can work around this with a URL of the form:
|
@alexcrichton that workaround is actually not identical. If you use the scp-style syntax, it sets your cwd to the user's home directory, while ssh style syntax sets your cwd to the root. Thus, you can work around with an absolute path using ssh syntax, but it's not 1<->1 the same. I actually believe #1851 is conflating two separate issues
I ran into both issues when investigating this issue on my side. I was running out of a blank lxc container which didn't have ssh-agent running and I'd like to reopen this one to pay attention to issue (1) and leave #1851 because it has a lot of conversation about issue (2). |
Aha very good points! I'm also cool leaving this open as a separate issue. |
And yeah to clarify I believe that the |
I believe this is a duplicate of #1851, so closing in favor of that. |
According to "git help clone" this is a valid url type
However, cargo chokes on this because the url does not parse. I traced this to a call to Url::parse which does not accept this format.
Filed here with rust-url, but it seems that rust-url shouldn't be expected to parse this git format.
servo/rust-url#220
Does libgit2 have a url parsing library?
The text was updated successfully, but these errors were encountered: