Skip to content

Commit 8bfb97c

Browse files
authored
Rollup merge of #107841 - tharunsuresh-code:snap_curl, r=ozkanonur
Handled snap curl issue inside Rust
2 parents 11e1280 + 858a4aa commit 8bfb97c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/download.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ impl Config {
229229
"--retry",
230230
"3",
231231
"-Sf",
232-
"-o",
233232
]);
234-
curl.arg(tempfile);
235233
curl.arg(url);
234+
let f = File::create(tempfile).unwrap();
235+
curl.stdout(Stdio::from(f));
236236
if !self.check_run(&mut curl) {
237237
if self.build.contains("windows-msvc") {
238238
println!("Fallback to PowerShell");

0 commit comments

Comments
 (0)