Skip to content

Commit 0e05f26

Browse files
authored
Fix brew action (#13659)
We patch brew to ensure it overwrites files while linking the dependencies
1 parent bc6a1c9 commit 0e05f26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/actions/brew/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ runs:
55
- shell: bash
66
run: |
77
set -x
8+
9+
# Patch brew to overwrite always
10+
formula_installer="$(brew --repo)"/Library/Homebrew/formula_installer.rb
11+
code=" keg.link\(verbose: verbose\?"
12+
sudo sed -Ei '' "s/$code.*/$code, overwrite: true\)/" "$formula_installer"
13+
814
brew install \
915
pkg-config \
1016
autoconf \

0 commit comments

Comments
 (0)