Catalina upgrades causes Homebrew to break when you run brew cleanup.…#6940
Catalina upgrades causes Homebrew to break when you run brew cleanup.…#6940rogerhu wants to merge 1 commit intoHomebrew:masterfrom
Conversation
MikeMcQuaid
left a comment
There was a problem hiding this comment.
You're right that this code is (now) incorrect. It is needed when you change between portable and system Ruby, though, because otherwise natively compiled Ruby modules will crash.
There was a problem hiding this comment.
Instead this should run safe_system "git", "clean", "-xf", bundler_path
There was a problem hiding this comment.
Instead this should run puts "Would remove:\n#{Utils.popen_read("git", "clean", "-xnf", bundler_path)}
… 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.
|
Thanks for your quick turnaround! (and for updating the unit tests) |
|
Possible you can do a hot-fix release for this fix? We at squareup.com use an internal tool that invokes brew cleanup and it causes a lot of issues for Catalina upgrades. We can add a workaround if the timing's not right for you so please let us know! Thanks! |
|
@rogerhu Sorry, no. We should do a release early next week (perhaps even Monday afternoon UK time) but this depends a lot on what's going on. |
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(which exists 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.
Trying to get feedback on why we're nuking vendor_path code. Can we get rid of it?
brew stylewith your changes locally?brew testswith your changes locally?