RamblingCookieMonster / BuildHelpers

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

Add compatibility for scoop git #119

Closed JustinGrote closed 4 years ago

JustinGrote commented 5 years ago

Installing Git via scoop adds a git.ps1 shim. Get-Command as currently defined picks up this shim and tries to start it as a process which fails as "not a valid win32 application". This adjustment will ensure it gets the executable specifically. Tested cross platform to Linux as well.

Available Workaround

Get-BuildVariable -GitPath (get-command git -commandtype application)

JustinGrote commented 5 years ago

@RamblingCookieMonster any followup on this?

RamblingCookieMonster commented 4 years ago

Good catch, sorry for the wait!