Catalina upgrades causes Homebrew to break when you run brew cleanup. Catalina has Ruby 2.6 installed, so the portable Ruby version is not needed.

If you have /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby (for older OS X versions), then the cleanup tool will nuke everything in usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby. You will need to brew update-reset to get back the old packages.
This commit is contained in:
Roger Hu 2020-01-15 14:24:27 -08:00
parent fc0777b291
commit d27c5fb2cb

View File

@ -362,10 +362,9 @@ module Homebrew
bundler_path = vendor_path/"bundle/ruby"
if dry_run?
puts "Would remove: #{bundler_path} (#{bundler_path.abv})"
puts "Would remove: #{portable_ruby_path} (#{portable_ruby_path.abv})"
puts "Would remove:\n#{Utils.popen_read("git", "clean", "-xnf", bundler_path)}"
else
FileUtils.rm_rf [bundler_path, portable_ruby_path]
safe_system "git", "clean", "-xf", bundler_path
end
end