MacOS build fails because of homebrew "bundle" unknown command

Thanks a lot!

update: true

works for me as well. Takes a while, though, but at least the build runs now.

1 Like

How frequently do the macOS virtual machines receive updates?

My understanding is that Homebrew Bundle, which the Homebrew addon uses, now depends on Homebrew 2.2.5, and the macOS virtual machines currently ship an older version.

Until the virtual machines receive an update, or something else changes, the workaround is to update it via update: true, as above.

4 Likes

I opened a macOS Packer Templates PR to add Homebrew Bundle to the macOS images and avoid mismatches between the installed (stale) version of Homebrew and latest version of Homebrew Bundle.

2 Likes

They say they are thinking about it, but not very hard apparently: https://twitter.com/AJenbo/status/1175976531480457216

3 Likes

I also have the same issue with many of my projects:

We have the same problem too: https://travis-ci.org/kcat/alure/jobs/656584032

Add update: true under the homebrew: key in your environment.

Thanks to @BanzaiMan. Also see OS X image and “Error: Unknown command: bundle” and MacOS build fails because of homebrew “bundle” unknown command.

@BanzaiMan Can we expect an updated macOS image in coming days to solve this? Having Homebrew updated to a current functional version directly in the image should reduce build times for all of us who currently had to resort to forcing update: true in our builds.

1 Like

The new image is available: https://changelog.travis-ci.com/xcode-11-3-1-xcode-11-2-1-xcode-11-1-and-xcode11-images-updated-142286

1 Like

Confirmed fix for OSX 10.12-10.14 (Homebrew currently supports 10.13+)
See MacOS build fails because of homebrew "bundle" unknown command.

1 Like

I think it’s a misinformed that it’s fixed for OS X 10.12-10.14, but rather Xcode of the mentioned version–only macOS 10.14 is fixed.

1 Like

I still get the error, and adding update: true comes with a few minutes penalty :frowning:

@elichai2 Please link to a build showcasing the problem. I may very well be something different.

Here is the exact error:
https://travis-ci.org/github/elichai/secp256k1/jobs/682311185#L104

I’m using xcode10.1 because that’s the latest valgrind currently supports.

Now with update: true that doesn’t fail anymore:
https://travis-ci.org/github/elichai/secp256k1/jobs/682314237#L93

1 Like

Confirmed the problem for xcode10.x.
It turns out that MacOS build fails because of homebrew "bundle" unknown command is accurate and indeed, they only updated xcode11.x.

In my previous test, the command actually failed, but that failure was ignored and it exited with 0 (which is a bug in and of itself) – so I didn’t notice that.

How can we get someone to fix this?
I’m using xcode 10.x Because I need valgrind and it currently only supports up to macOS 10.13.
Maybe I should go back to xcode 9.x?

@elichai2 You can install Homebrew packages manually, without using the addon.

And will that work? doesn’t it use the same homebrew binary and I’ll still get the same bundle missing error unless I update everything?

It actually worked :slight_smile:
and now installing brew packages took 30 seconds, instead of 350 seconds and there’s no need for caching :smiley:
(which took another 50s to download, 46 seconds for brew clean and 75s for storing)
Overall saving 491s(8 minutes!) Thanks!

Still an issue here, tested with xcode11 and xcode11.6 image. Updating brew just times out…

  homebrew:
    taps: hudochenkov/sshpass
    packages: sshpass
    update: true