From 858a4aa70c74d64d897b27d034c367b7ccc7d679 Mon Sep 17 00:00:00 2001 From: Tharun Suresh Date: Thu, 9 Feb 2023 15:53:20 +0530 Subject: [PATCH] Handled snap curl issue inside Rust #107722 --- src/bootstrap/download.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs index bd67978a7662e..6b77737cefb27 100644 --- a/src/bootstrap/download.rs +++ b/src/bootstrap/download.rs @@ -221,10 +221,10 @@ impl Config { "--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");