Skip to content

Commit e4e63d9

Browse files
committed
Force relink Python
1 parent 5846910 commit e4e63d9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci-macvim.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,16 @@ jobs:
113113
env:
114114
HOMEBREW_NO_AUTO_UPDATE: 1
115115
run: |
116-
brew install python
116+
brew install python3
117117
brew install ruby
118118
brew install lua
119+
120+
# CI sometimes have custom installed Python instead of using Homebrew. Forcefully re-
121+
# link Python, and then check that we are using the Homebrew version. This avoids us
122+
# using a mystery Python installation that we don't control.
123+
brew unlink python3 && brew link --overwrite python3
124+
readlink -f $vi_cv_path_python3 | grep "^$(brew --cellar python3)"
125+
119126
if [[ -d /usr/local/Cellar/perl ]]; then
120127
# We just use system perl to reduce dependencies
121128
brew unlink perl

0 commit comments

Comments
 (0)