Skip to content

Commit

Permalink
Ignore brew dependency installation to fix breakages on MacOS CI. (#4950
Browse files Browse the repository at this point in the history
)

* Try to use Boost 1.86 instead to fix MacOS failures.

Signed-off-by: fruffy <[email protected]>

* Try an approach using --overwrite.

Signed-off-by: fruffy <[email protected]>

* Try an approach using --ignore-dependencies.

Signed-off-by: fruffy <[email protected]>

---------

Signed-off-by: fruffy <[email protected]>
  • Loading branch information
fruffy authored Oct 8, 2024
1 parent d0b05cf commit fbbd2f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/install_mac_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# Script to install P4C dependencies on MacOS.

set -e # Exit on error.
set -x # Make command execution verbose

# Installation helper.
brew_install() {
echo "\nInstalling $1"
if brew list $1 &>/dev/null; then
echo "${1} is already installed"
else
brew install $1 && echo "$1 is installed"
brew install --ignore-dependencies $1 && echo "$1 is installed"
fi
}

Expand Down

0 comments on commit fbbd2f7

Please sign in to comment.