Skip to content

Conversation

@ichizok
Copy link
Contributor

@ichizok ichizok commented Oct 12, 2017

The latest brew requires ruby 2.3 or later, and brew-update installs its own ruby binary.
brew-install does brew-update under its process, but brew-install is continued on the previous ruby envs (system default: 2.0.0), so brew reports ruby-version error.

To fix it:

  • do separately brew-update and brew-install
  • do brew-install with HOMEBREW_NO_AUTO_UPDATE=1 (means don't do brew-update in brew-install)

brew-update installs its own ruby binary and brew uses it after that.
But, when brew-update does in brew-install, brew-install keeps to use
previous ruby (system-default ruby, 2.0.0) and it is not able to run
latest brew, requires ruby 2.3 or later.
Thus should do separately brew-update and brew-install and preferable
to set 'HOMEBREW_NO_AUTO_UPDATE' to avoid unnecessary brew-updating.
@codecov-io
Copy link

Codecov Report

Merging #2203 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2203      +/-   ##
==========================================
+ Coverage   74.25%   74.27%   +0.01%     
==========================================
  Files          90       90              
  Lines      131984   131983       -1     
  Branches    28987    30858    +1871     
==========================================
+ Hits        98007    98024      +17     
+ Misses      33952    33930      -22     
- Partials       25       29       +4
Impacted Files Coverage Δ
src/if_xcmdsrv.c 83.81% <0%> (-0.36%) ⬇️
src/channel.c 82.36% <0%> (-0.17%) ⬇️
src/if_py_both.h 76.09% <0%> (-0.15%) ⬇️
src/gui_gtk_x11.c 47.76% <0%> (-0.11%) ⬇️
src/terminal.c 65.12% <0%> (-0.07%) ⬇️
src/eval.c 80.81% <0%> (-0.05%) ⬇️
src/os_unix.c 53.41% <0%> (-0.05%) ⬇️
src/libvterm/src/screen.c 72.18% <0%> (+0.02%) ⬆️
src/gui.c 46.39% <0%> (+0.05%) ⬆️
src/term.c 51.25% <0%> (+0.05%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9202162...12801c5. Read the comment docs.

@brammool brammool closed this in 8065cf2 Oct 12, 2017
@ichizok ichizok deleted the fix/ci-osx branch October 12, 2017 20:07
adizero pushed a commit to adizero/vim that referenced this pull request May 19, 2018
Problem:    Building with lua fails for OSX on Travis.
Solution:   Separate brew-update and brew-install. (Ozaki Kiichi, closes vim#2203)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants