# MacOS build fails because of homebrew "bundle" unknown command

**URL:** <https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296>\
**Category:** macOS\
**Created:** [February 20, 2020, 5:16pm UTC](https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296 "2020-02-20T17:16:45Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![casconed](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/casconed/32/3877_2.png) [@casconed](https://travis-ci.community/u/casconed)\
**Post date:** [February 20, 2020, 10:17pm UTC](https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/10 "2020-02-20T22:17:31Z")

</div>

Seems like this commit:

> <https://github.com/Homebrew/homebrew-bundle/commit/b4610171740afa085dfb6524436b0365a92b9222>
>
> This helps us with consistent help output, parsing invalid options and
> accessing… options without using \`ARGV\` directly.
> 
> While we're here: cleanup some old checks that are no longer needed and
> simplify \`cmd/brew-bundle.rb\`.

broke the installation of that tap. In order to provide external commands (like `brew bundle`) Homebrew expects a file `brew-bundle.rb`, which has been deleted from the repo (or renamed `bundle.rb`

From this issue: [Unknown command: bundle · Issue #646 · Homebrew/homebrew-bundle · GitHub](https://github.com/Homebrew/homebrew-bundle/issues/646) it seems like `brew update` might fix the issue. Would be nice if the Travis team could update the build image, rather than requiring us to run `brew update` on every build. As you note in your docs:

> By default, the Homebrew addon will not run `brew update` before installing packages. `brew update` can take a long time and slow down your builds.

edit: confirming that adding `update: true` fixes my build.

```auto
    addons:
      homebrew:
        packages:
        - graphicsmagick
        update: true

```

---

_[View the full topic](https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296)._
