Skip to content

Commit ef84b3a

Browse files
committed
Auto merge of #136815 - ChrisDenton:fix-mingw-ci, r=<try>
Prevent Git4Win from prepending its bin directory to `PATH` We used to do this along time ago but we stopped doing it when we started installing msys2 manually. https://github.com/rust-lang/rust/blob/4fd3cf96a1db7771ef4f332b9eb1ad17fa0fd091/src/ci/scripts/install-msys2.sh#L11-L13 Fixes #136795 try-job: dist-i686-mingw
2 parents 80c0919 + 48007c1 commit ef84b3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/ci/scripts/install-mingw.sh

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ if isWindows && isKnownToBeMingwBuild; then
3232
;;
3333
esac
3434

35+
# Stop Git4Win from prepending /msys64/bin to PATH.
36+
msys2Path="c:/msys64"
37+
mkdir -p "${msys2Path}/home/${USERNAME}"
38+
ciCommandAddPath "${msys2Path}/usr/bin"
39+
3540
mingw_dir="mingw${bits}"
3641

3742
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"

0 commit comments

Comments
 (0)