about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-10 06:09:57 +0100
committerGitHub <noreply@github.com>2023-02-10 06:09:57 +0100
commit8bfb97cc8a2f6c175d86a4fa815168874e6059d5 (patch)
tree808575b47ac5b8549ee4134cc968a8787703b08f
parent11e128025a7d855b80aa7ec1871e71451d8c8b7f (diff)
parent858a4aa70c74d64d897b27d034c367b7ccc7d679 (diff)
downloadrust-8bfb97cc8a2f6c175d86a4fa815168874e6059d5.tar.gz
rust-8bfb97cc8a2f6c175d86a4fa815168874e6059d5.zip
Rollup merge of #107841 - tharunsuresh-code:snap_curl, r=ozkanonur
Handled snap curl issue inside Rust
-rw-r--r--src/bootstrap/download.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs
index 5c863015adb..b9db9f12cdf 100644
--- a/src/bootstrap/download.rs
+++ b/src/bootstrap/download.rs
@@ -229,10 +229,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");