RamblingCookieMonster / BuildHelpers

Helper functions for PowerShell CI/CD scenarios
MIT License
214 stars 47 forks source link

Fix using scoop shims #124

Closed EsOsO closed 4 years ago

EsOsO commented 4 years ago

Scoop uses ps1 shims to run installed applications, getting command will try to execute the script instead of the real application resulting in

MethodInvocationException: C:\Users\<redacted>\Documents\PowerShell\Modules\BuildHelpers\2.0.11\Public\Invoke-Git.ps1:103
Line |
 103 |      $null = $p.Start()
     |      ~~~~~~~~~~~~~~~~~~
     | Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."
EsOsO commented 4 years ago

duplicated #124