Homebrew addon silently fails and doesn't install dependencies

I’m trying to make fairly simple use of the Homebrew addon:

      - moreutils

But this silently fails (as seen in this example job) with the following error:

$ rvm $brew_ruby do brew bundle --verbose --global
/usr/local/bin/brew tap homebrew/bundle
==> Tapping homebrew/bundle
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle'...
remote: Enumerating objects: 96, done.
remote: Counting objects: 100% (96/96), done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 96 (delta 5), reused 22 (delta 1), pack-reused 0
Receiving objects: 100% (96/96), 49.49 KiB | 3.09 MiB/s, done.
Resolving deltas: 100% (5/5), done.
Tapped (105 files, 261.8KB).
Error: Unknown command: bundle

Based on this other issue description it seems like this is all a result of the Homebrew addon using brew bundle which appears to be broken. I know that I can just do brew install in my before_install but based on some attempts it seems like this causes brew to spend several minutes updating before it gets to installing a package as simple as moreutils – to the point where it might be faster to just compile the damn thing myself.

Is this a known issue (it seems to me like this means that all users of the Homebrew addon have currently-broken jobs).


The problem you are facing is probably due to the fact that you are using the default OSX image from Travis which contains brew version 1.6.9 which is very old, and is not compatible with the bundle command.

As I’ve pointed out here:

If anyone reading this has the same issue as I did, a good working solution is to use a macos image that is newer than the default. At the time of writing this, the default is called xcode9.4 and has brew 1.6.9 , but the newest image called xcode11 has brew 2.1.9 which is enough for bundle . See here for the full list of Travis macos images: https://docs.travis-ci.com/user/reference/osx/#macos-version