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
+1 -1
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(),