Homebrew packages failed to install


#1

Hello,
My TravisCI configuration file contains the following lines:

 - name: "haxm-darwin"
   os: osx
   osx_image: xcode10
   addons:
     homebrew:
       packages:
         - nasm

This has been working fine so far, inspecting the build logs I saw the following:

Installing Homebrew Packages
$ brew bundle --verbose --global
/usr/local/bin/brew tap homebrew/bundle

[...]

Installing nasm
Homebrew Bundle complete! 1 Brewfile dependency now installed.

(see: https://travis-ci.com/intel/haxm/jobs/155172825#L87)

However with exactly the same configuration, since few hours ago I get the following error.

Installing Homebrew Packages
rvm $brew_ruby do brew bundle --verbose --global
Ruby ruby-2.3.7 is not installed.

(see: https://travis-ci.com/intel/haxm/jobs/155295799#L87)

This looks to me like some bug. Is there any action required on my side?
Thank you.

EDIT: Confirmed to be a bug: Restarting builds that succeeded previously now result in errors. See: kryptoslogic/haxm/builds/89550760 (apparently I can’t post more than 2 links).


#2

Thanks for the report.

This was caused by https://github.com/travis-ci/travis-build/pull/1554, which sought to ensure that Ruby 2.3+ is used to invoke brew commands. This was tested on Ruby builds, but it appears it fails on non-Ruby ones.

I’ve opened https://github.com/travis-ci/travis-build/pull/1559, which should fix the issue.


#3

It’s been reverted for now, so restarting the previously failing jobs should go now.


#4

I’ve deployed the long-term fix. It should work now. Thanks.