Closed bbugh closed 7 years ago
I am running Ruby 2.4
Homebrew always uses the system Ruby, so it likely started with Ruby 2.0.0, installed the vendored Ruby 2.3.3, but then didn't use the vendored Ruby the first time.
Can you reproduce the error if you remove /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby
?
Would this explain why Travis builds for OSX fail? https://travis-ci.org/szeck87/atom-beautify/jobs/286285106
Hi everyone! This is MarΓa from Travis CI -
As @szeck87 mentioned, we're seeing a similar behaviour in our macOS environment on macOS builds https://github.com/travis-ci/travis-ci/issues/8552#issuecomment-335430374
Seems that current workarounds would be:
brew update
before brew install package_name
Does this help? Thank you!
This was fixed in Homebrew 1.3.4, so if you are on >= 1.3.4 now, you can safely ignore this error. For Travis, refer to the workaround above.
@MariadeAnton The better fix would be if Travis CI could prioritise updating the Homebrew on your base images (basically: run brew update
, create a new image). I've removed one of your suggestions because we intentionally don't want people to just disable auto-updating because then they will never turn it back on and file bugs to us based on old Homebrew versions. Thanks!
@MikeMcQuaid thank you for explaining - that makes sense!
These are workarounds while we update our long-term support macOS images, we'll stick to brew update
in the meantime :)
OK, running brew update
before any installs worked. Not to sidetrack this issue, but @MariadeAnton is there an issue in https://github.com/travis-ci/travis-ci/ I can comment on about updating images? Updating Homebrew takes the longest and certainly doesn't help the number of backlog OSX builds, while updating the images frequently would reduce that significantly.
@javadba Could you please open a new issue and fill out the issue template as much as you can.
Running
brew install colordiff
gave me an error message related to #3240, but only once. I am running Ruby 2.4, but #3240 is checking for minor version less than 3. I'm not sure how I saw this error, as the code looks like it would allow for 2.4.Below is the exact sequence of commands I used.
Testing the same homebrew code that raised the error in irb, in the same folder.
Output of
brew config
Output of
brew doctor
Please always follow these steps:
brew
command and notbrew install
ing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/newbrew update
and retried your prior step? Unable to reproduce issuebrew doctor
, fixed all issues and retried your prior step? Unable to reproduce issuebrew config
andbrew doctor
and included their output with your issue?