Skip to content

Commit becc1ab

Browse files
authored
fix(ci): work around CI Windows git failure MONGOSH-660 (#750)
For some reason, Windows builds started failing recently. The windows-64-vs2019-small image, the Node.js version, the npm version, the git version, and the package-lock.json all remained the same in that period, so it is unclear what exactly caused this. While a full investigation would likely be interesting, that’s not easy with Evergreen’s current capabilities. However, fixing this seems possible by explicitly adding the git binaries (including libexec ones) to the PATH, so let’s do that for now.
1 parent 5c84426 commit becc1ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.evergreen/.setup_env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set -e
22
set -x
33
export BASEDIR="$PWD/.evergreen"
4-
export PATH="$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/python/3.6/bin:/opt/chefdk/gitbin:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/cmake/bin:$PATH"
4+
export PATH="$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/python/3.6/bin:/opt/chefdk/gitbin:/cygdrive/c/Program Files/Git/bin:/cygdrive/c/Program Files/Git/mingw32/libexec/git-core:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/cmake/bin:$PATH"
55
export IS_MONGOSH_EVERGREEN_CI=1
66

77
if [ "$OS" != "Windows_NT" ]; then

0 commit comments

Comments
 (0)