Since the update to brew 2.0.0 and introduction of automatic cleanup the cleanup is executed for me every single time I am doing
brew upgrade. This wouldn’t be all that tragic, the problem is that
brew cleanup is executed after the upgrade of each keg stopping the upgrade process, so that I need to rerun
brew upgrade to upgrade next keg and so on until all are upgraded.
Currently I am on brew 2.0.1 and the problem still persists:
$ brew --version Homebrew 2.0.1 Homebrew/homebrew-core (git revision 2b164; last commit 2019-02-09)
I didn’t find any such issue online. What can be the cause and how to deal with it? Brew doctor is clean, just shows some broken symlinks of ghostscript caused by installed MacTeX.