Skip to content

Commit

Permalink
Handled snap curl issue inside Rust rust-lang#107722
Browse files Browse the repository at this point in the history
  • Loading branch information
tharunsuresh-code committed Feb 9, 2023
1 parent 4259073 commit 858a4aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 858a4aa

Please sign in to comment.