Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@felixbuenemann
Copy link
Contributor

If the check for Travis CI binaries returned false – as is always the case outside of Travis CI – the code could go into an endless loop, because is was continued before the iterator was incremented.

@felixbuenemann felixbuenemann changed the title Fix endless loop in list_remote_all on macOS Fix endless loop on macOS when listing remotes May 26, 2019
mpapis
mpapis previously approved these changes May 27, 2019
Copy link
Member

@mpapis mpapis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please fix formatting

@pkuczynski pkuczynski added this to the rvm-1.29.9 milestone May 27, 2019
Make sure the iterator is always incremented to prevent an endless loop
if the __rvm_include_travis_binaries function returns false.
@felixbuenemann
Copy link
Contributor Author

Travis CI failures seem unrelated, I fixed one of them in #4704.

@felixbuenemann
Copy link
Contributor Author

felixbuenemann commented May 27, 2019

The other test failure seems to be caused by an incompatible config in /home/travis/.rvmrc which has rvm_gem_options='--no-document' which gets then merged into install_params+=( $rvm_gem_options ) so it ends up with --no-ri --no-rdoc --no-document which can't work with rubygems 1.8.25.

Update: Proposed a fix in #4705.

pkuczynski
pkuczynski previously approved these changes May 28, 2019
@pkuczynski
Copy link
Member

Thanks!

@pkuczynski pkuczynski merged commit 0d99d4a into rvm:master May 28, 2019
@felixbuenemann felixbuenemann deleted the fix-mount-macos-endless-loop branch May 28, 2019 20:29
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.

3 participants