Skip to content

Commit 858a4aa

Browse files
Handled snap curl issue inside Rust rust-lang#107722
1 parent 4259073 commit 858a4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/download.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ impl Config {
221221
"--retry",
222222
"3",
223223
"-Sf",
224-
"-o",
225224
]);
226-
curl.arg(tempfile);
227225
curl.arg(url);
226+
let f = File::create(tempfile).unwrap();
227+
curl.stdout(Stdio::from(f));
228228
if !self.check_run(&mut curl) {
229229
if self.build.contains("windows-msvc") {
230230
println!("Fallback to PowerShell");

0 commit comments

Comments
 (0)