Rollup merge of #107841 - tharunsuresh-code:snap_curl, r=ozkanonur

Handled snap curl issue inside Rust
This commit is contained in:
Matthias Krüger 2023-02-10 06:09:57 +01:00 committed by GitHub
commit 8bfb97cc8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");