From a15b2a2f23433acfe2370325f0bf4675016500bd Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Wed, 11 Mar 2020 12:42:11 -0400 Subject: [PATCH] Unconditionally upgrade installed Brew packages on OSX (#33481) With Apt, if you have X 1.0 installed, 1.1 exists in the package manifest, and say "install X", X is upgraded to 1.1. With Brew, a fatal error is thrown. Blindly upgrading all previously installed packages is not ideal, and not a perfect mirror for the Apt behaviour, but it should mean that if X is previously installed it gets upgraded (causing a warning during install, when it's asked to be installed again with the same version), and if it's not already installed then it gets installed later. Closes: https://github.com/dotnet/runtime/issues/33471 --- eng/install-native-dependencies.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/install-native-dependencies.sh b/eng/install-native-dependencies.sh index 7184822..a73d491 100644 --- a/eng/install-native-dependencies.sh +++ b/eng/install-native-dependencies.sh @@ -11,6 +11,7 @@ if [ "$1" = "Linux" ]; then fi elif [ "$1" = "OSX" ]; then brew update + brew upgrade if [ "$?" != "0" ]; then exit 1; fi -- 2.7.4