From bc4a3f17034ab51693bc932a9b4eab0f3c23bae5 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 19 Jul 2017 12:05:30 -0700 Subject: [PATCH] Work around to fix appveyor build (#11295) * work around for appveyor connectivity issues Unfortuantelly, this slows down our build :( * review feedback --- bin/internal/update_dart_sdk.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/internal/update_dart_sdk.ps1 b/bin/internal/update_dart_sdk.ps1 index 1f16cb6ebb..43a10566b1 100644 --- a/bin/internal/update_dart_sdk.ps1 +++ b/bin/internal/update_dart_sdk.ps1 @@ -40,8 +40,13 @@ if (Test-Path $dartSdkPath) { } New-Item $dartSdkPath -force -type directory | Out-Null $dartSdkZip = "$cachePath\dart-sdk.zip" -Import-Module BitsTransfer -Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip +# TODO(goderbauer): remove (slow and backwards-incompatible) appveyor work around +if (Test-Path Env:\APPVEYOR) { + curl $dartSdkUrl -OutFile $dartSdkZip +} else { + Import-Module BitsTransfer + Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip +} Write-Host "Unzipping Dart SDK..." If (Get-Command 7z -errorAction SilentlyContinue) {