ci: force Windows Git version to 2.22.0

In Git for Windows 2.23, the /dev and /dev/fd directories did not get
created.  As a result, it's not possible to use a process substitution
in bash, which breaks a significant portion of the test suite.  In the
mean time, let's downgrade Git for Windows to 2.22.0, which is what
Actions used to use and worked for us.  We can remove this hack when the
next Git for Windows release occurs.
This commit is contained in:
brian m. carlson 2019-09-23 15:00:42 +00:00
parent b6e27793e0
commit 52257344da
No known key found for this signature in database
GPG Key ID: 2D0C9BC12F82B3A1

@ -22,6 +22,8 @@ jobs:
- run: set PATH=%GOPATH%\bin;%PATH%
- run: cinst InnoSetup -y
- run: cinst strawberryperl -y
- run: choco uninstall git.install -y --force
- run: cinst git --version 2.22.0 -y --force
- run: refreshenv
- run: GOPATH="$HOME/go" PATH="$HOME/go/bin:$PATH" go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
shell: bash