# Homebrew addon silently fails and doesn't install dependencies

**URL:** <https://travis-ci.community/t/homebrew-addon-silently-fails-and-doesnt-install-dependencies/9255>\
**Category:** macOS\
**Created:** [July 6, 2020, 8:55am UTC](https://travis-ci.community/t/homebrew-addon-silently-fails-and-doesnt-install-dependencies/9255 "2020-07-06T08:55:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyphar](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/cyphar/32/4898_2.png) [@cyphar](https://travis-ci.community/u/cyphar)\
**Post date:** [July 6, 2020, 8:55am UTC](https://travis-ci.community/t/homebrew-addon-silently-fails-and-doesnt-install-dependencies/9255/1 "2020-07-06T08:55:46Z")

</div>

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

```auto
addons:
  homebrew:
    packages:
      - moreutils

```

But this _silently fails_ (as seen in [this example job](https://travis-ci.org/github/opencontainers/umoci/jobs/705319737#L127-L138)) with the following error:

```auto
$ 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](https://travis-ci.community/t/osx-homebrew-addons-module-not-as-reliable-as-claimed/4054/9) 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).

---

<div class="post-metadata">

**Author:** ![glostis](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/glostis/32/2415_2.png) [@glostis](https://travis-ci.community/u/glostis)\
**Post date:** [July 6, 2020, 9:30am UTC](https://travis-ci.community/t/homebrew-addon-silently-fails-and-doesnt-install-dependencies/9255/2 "2020-07-06T09:30:35Z")

</div>

Hi,

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](https://github.com/Homebrew/homebrew-bundle/issues/540#issuecomment-518301382):

> 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: [The macOS Build Environment - Travis CI](https://docs.travis-ci.com/user/reference/osx/#macos-version)
