Getting closer...

This commit is contained in:
Pietro Gagliardi 2019-04-07 01:23:07 -04:00
parent 58cdf151a5
commit 4ec1a642a2
1 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,7 @@ steps:
- powershell: |
Set-PSDebug -Trace 2
Write-Host "$env:ChocolateyInstall"
dir "$env:ChocolateyInstall" | Write-Host
dir "$env:ChocolateyInstall\lib" | Write-Host
dir "$env:ChocolateyInstall\lib\mingw" | Write-Host
$chocopath = where.exe choco.exe | Get-Item
# apparently they didn't think to add this functionality from the start (multiple joins was only added in PowerShell 6 and Azure Pipelines is using 5.x), and the direct-CLR approach actually behaves differently (and I would need to check which version of .net Azure Pipelines is using anyway, since our use case isn't one of those cases where it behaves differently)
$chocopath = Join-Path -Path $chocopath.Directory -ChildPath "install" | Join-Path -ChildPath "${{ parameters.which }}" | Join-Path -ChildPath "bin"