mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Handled snap curl issue inside Rust #107722
This commit is contained in:
@@ -221,10 +221,10 @@ fn download_http_with_retries(&self, tempfile: &Path, url: &str, help_on_error:
|
||||
"--retry",
|
||||
"3",
|
||||
"-Sf",
|
||||
"-o",
|
||||
]);
|
||||
curl.arg(tempfile);
|
||||
curl.arg(url);
|
||||
let f = File::create(tempfile).unwrap();
|
||||
curl.stdout(Stdio::from(f));
|
||||
if !self.check_run(&mut curl) {
|
||||
if self.build.contains("windows-msvc") {
|
||||
println!("Fallback to PowerShell");
|
||||
|
||||
Reference in New Issue
Block a user