Add HTTPS and SSH hints to scheme error (#3536)

Closes https://github.com/astral-sh/uv/issues/3483.
This commit is contained in:
Charlie Marsh 2024-05-12 22:14:58 -04:00 committed by GitHub
parent b6f6f58831
commit 106c3b583c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ impl Dist {
Some(Scheme::GitGit | Scheme::GitHttp) => Err(Error::UnsupportedScheme(
url.scheme().to_owned(),
url.verbatim().to_string(),
"insecure Git protocol".to_string(),
"insecure Git protocol; use `git+https` or `git+ssh` instead".to_string(),
)),
Some(Scheme::GitFile) => Err(Error::UnsupportedScheme(
url.scheme().to_owned(),