valet icon indicating copy to clipboard operation
valet copied to clipboard

Disable brew auto cleanup on installation

Open JoshuaBehrens opened this issue 4 years ago • 2 comments

When you change the php version and brew stumbles in auto cleanup mode which can fail but is unrelated to the version change in that case. So I just added the environment variable to these calls.

==> `brew cleanup` has not been run in 30 days, running now...
Removing: /usr/local/Cellar/krb5/1.18.2... (162 files, 4.0MB)
Removing: /usr/local/Cellar/oniguruma/6.9.5-rev1... (16 files, 1.3MB)
Error: Could not remove php keg! Do so manually:
  sudo rm -rf /usr/local/Cellar/php/7.4.9
Removing: /usr/local/Cellar/php/7.4.9... (497 files, 72.2MB)


In Brew.php line 140:
                                         
  Brew was unable to install [[email protected]].  
                                         

use <phpVersion>

JoshuaBehrens avatar Nov 19 '20 10:11 JoshuaBehrens

Tests fail after this. I'll probably work to update the tests later.

mattstauffer avatar Mar 31 '22 14:03 mattstauffer

I totally forgot about this pull request :O thank you very much for still looking into it :)

JoshuaBehrens avatar Mar 31 '22 15:03 JoshuaBehrens

Thanks for this PR!

mattstauffer avatar Dec 02 '22 01:12 mattstauffer

Thank you for merging it :) and updating it to an updated php version :)

JoshuaBehrens avatar Dec 02 '22 07:12 JoshuaBehrens