From b719787aa66e16433172d73ec02c16ec39b81e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabr=C3=ADzio=20de=20Royes=20Mello?= Date: Tue, 5 Mar 2024 19:19:35 -0300 Subject: [PATCH] Disable homebrew automatic dependency upgrades 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- --- .github/workflows/linux-build-and-test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-build-and-test.yaml b/.github/workflows/linux-build-and-test.yaml index be78e6f05..10477c355 100644 --- a/.github/workflows/linux-build-and-test.yaml +++ b/.github/workflows/linux-build-and-test.yaml @@ -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')"