diff options
| author | Tharun Suresh <stharunvikram@gmail.com> | 2023-02-09 15:53:20 +0530 |
|---|---|---|
| committer | Tharun Suresh <stharunvikram@gmail.com> | 2023-02-09 15:53:20 +0530 |
| commit | 858a4aa70c74d64d897b27d034c367b7ccc7d679 (patch) | |
| tree | 3c0b388d0144f3b76fe65efc9b527e1b5b431b6c | |
| parent | 4259073e9a5bedd25f4860ddec2be55d995b4b9d (diff) | |
| download | rust-858a4aa70c74d64d897b27d034c367b7ccc7d679.tar.gz rust-858a4aa70c74d64d897b27d034c367b7ccc7d679.zip | |
Handled snap curl issue inside Rust #107722
| -rw-r--r-- | src/bootstrap/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs index bd67978a766..6b77737cefb 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"); |
