Skip to content

Commit

Permalink
Update Mac test runs to download RVM directly from GitHub (#9107)
Browse files Browse the repository at this point in the history
Our Mac test runs recently started failing to download RVM. The issue
appears to be a combination of an SSL certificate expiring and old
OpenSSL versions having a bug preventing them from validating the
replacement certificate: rvm/rvm#5133

This commit works around the problem by downloading RVM from GitHub as
suggested in one of the comments on the issue above.
  • Loading branch information
acozzette committed Oct 15, 2021
1 parent 0dab03b commit 8a0aa4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kokoro/macos/prepare_build_macos_rc
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ if [[ "${KOKORO_INSTALL_RVM:-}" == "yes" ]] ; then
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -

curl -sSL https://get.rvm.io | bash -s stable --ruby
# Old OpenSSL versions cannot handle the SSL certificate used by
# https://get.rvm.io, so as a workaround we download RVM directly from
# GitHub. See this issue for details: https://github.com/rvm/rvm/issues/5133
curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable --ruby
fi

0 comments on commit 8a0aa4b

Please sign in to comment.