From 179459347aebeaae91198572a17c9b7b27036932 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 7 Dec 2020 11:52:44 +0000 Subject: [PATCH] brew.sh: don't allow system Ruby on Catalina. It's (far) too broken for our purposes. Fixes https://github.com/Homebrew/brew/issues/9410 --- Library/Homebrew/brew.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index df0eda2a3b..d448ca3337 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -341,7 +341,9 @@ then # Set a variable when the macOS system Ruby is new enough to avoid spawning # a Ruby process unnecessarily. - if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "101500" ]] + # On Catalina the system Ruby is technically new enough but don't allow it: + # https://github.com/Homebrew/brew/issues/9410 + if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "101600" ]] then unset HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH else