From 9cfec001c97d8f282b07c65fa7e33f170101f850 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Sat, 10 Aug 2019 09:54:41 +0100 Subject: [PATCH] Downgrade choco to a version that works (#25803) Recommended workaround to https://github.com/chocolatey/choco/issues/1843 --- .appveyor.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index c184ce427e9e5..8101e2b6f9a53 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -43,6 +43,9 @@ services: ## Install PHP and composer, and run the appropriate composer command install: - IF EXIST C:\tools\php (SET PHP=0) + # TODO: This is a workaround for https://github.com/chocolatey/choco/issues/1843. Once this is fixed we + # should go back to latest version in appveyor saving ourselves test time + - ps: choco install chocolatey -y --version 0.10.13 --allow-downgrade - ps: >- If ($env:php_ver_target -eq "5.6") { appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y --forcex86 php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')