Skip to content

Commit 67271bf

Browse files
committed
Fix macos-12 CI runner not being able to build gettext
When building gettext, Homebrew tries to upgrade all dependencies, and Python is somehow a downstream dependency and it fails link in certain binaries like 2to3 which GitHub's CI environment already installed separately. This is a messy situation in general, but to fix it, just set `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` so Homebrew doesn't go helpfully upgrade our dependencies when all we want is to build the package itself. For the most part it should not cause any issues.
1 parent 1b5597c commit 67271bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/actions/universal-package/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ runs:
6666
echo '::group::Install formula'
6767
formula=${{ inputs.formula }}
6868
69+
# We don't want brew to go upgrade all our dependents for now. They are
70+
# time consuming and sometimes cause problems with the CI environment
71+
# where they fail to link in random binaries (e.g. Python's 2to3),
72+
# which cause brew install to return non-zero and fail the build.
73+
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
74+
6975
# This will be a no-op if formula was cached
7076
brew install --quiet --formula -s ./${formula}.rb
7177

0 commit comments

Comments
 (0)