Homebrew command issues

Hey dear CircleCI community :wave:t2:,

There have been plenty of reports of commands to Homebrew failing with this message:

Homebrew no longer needs to have ownership of /usr/local. If you wish you can 
return /usr/local to its default ownership with: 
sudo chown root:wheel /usr/local 
/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: No such file or directory -- /usr/local/Library/Homebrew/brew.rb (LoadError)

This issue is related to the update to Homebrew itself. As a work around for now please add this to your circle.yml:

dependencies:
  pre:
    - brew update
    - brew prune

This is an issue with Homebrew itself and not with CircleCI but we’ve seen customers return to green builds by first updating Homebrew in a separate command and then installing whatever dependencies are required afterwards.

Best,
Constantin

4 Likes

This issue has been solved.