Skip to content

Commit

Permalink
Disable homebrew automatic dependency upgrades
Browse files Browse the repository at this point in the history
Setting the HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 when using `brew
install` will turn off the automatic dependency upgrade when using this
command.

Reference:
https://docs.brew.sh/Manpage#install-options-formulacask-
  • Loading branch information
fabriziomello committed Mar 6, 2024
1 parent c0a3369 commit b719787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/linux-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ jobs:
- name: Install macOS Dependencies
if: runner.os == 'macOS'
run: |
brew install gawk
# Disable the automatic dependency upgrade executed by `brew install`
# https://docs.brew.sh/Manpage#install-options-formulacask-
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gawk
# Install perl modules after last Homebew call, since Homebrew can change the perl version
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'IPC::Run')"
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'Test::Most')"
Expand Down

0 comments on commit b719787

Please sign in to comment.