We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd1c3fc + 7fa7edd commit 2ed23bbCopy full SHA for 2ed23bb
.github/actions/universal-package/action.yml
@@ -72,8 +72,9 @@ runs:
72
# which cause brew install to return non-zero and fail the build.
73
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
74
75
- # This will be a no-op if formula was cached
76
- brew install --quiet --formula -s ./${formula}.rb
+ # This will be a no-op if formula was cached. We check if the package
+ # exists first just to avoid an "already installed" warning.
77
+ brew list ${formula} &>/dev/null || brew install --quiet --formula -s ./${formula}.rb
78
79
# If formula was cached, this step is necessary to relink it to brew prefix (e.g. /usr/local)
80
brew unlink ${formula} && brew link ${formula}
0 commit comments