-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not warn if using a development version newer than the latest release #4872
Conversation
* Previously, using latest RVM would show: Warning, new version of rvm available '1.29.9', you are using older version '1.29.9-next'. You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc You can update manually with: rvm get VERSION (e.g. 'rvm get stable')
@@ -28,6 +28,7 @@ | |||
* Fixes checksums for Ruby 2.6.4 [\#4769](https://github.com/rvm/rvm/pull/4769), 2.4.7 and 2.5.6 [\#4771](https://github.com/rvm/rvm/pull/4771) | |||
* Update TruffleRuby dependencies [\#4815](https://github.com/rvm/rvm/pull/4815) | |||
* Use ruby.git master instead of trunk [\#4840](https://github.com/rvm/rvm/pull/4840) | |||
* Fix RVM version check when using a version newer than the latest release [#4872](https://github.com/rvm/rvm/pull/4872) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was planning to do this fix ages ago and never found time! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😃 Could you merge the PR? Or should we wait for @mpapis' review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke with @mpapis and he liked your PR, so I will merge it now :)
@@ -180,6 +180,9 @@ __rvm_cli_autoupdate_version_old() | |||
online_version="$( __rvm_version_remote )" | |||
version_release="$(\command \cat "$rvm_path/RELEASE" 2>/dev/null)" | |||
: version_release:"${version_release:=master}" | |||
if [[ "${online_version}-next" == "${rvm_version%% *}" ]]; then # development version newer than latest release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead of this check, we should rather modify the online_version fetch above, to drop -next
. @mpapis what you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe rather the condition below?
@@ -28,6 +28,7 @@ | |||
* Fixes checksums for Ruby 2.6.4 [\#4769](https://github.com/rvm/rvm/pull/4769), 2.4.7 and 2.5.6 [\#4771](https://github.com/rvm/rvm/pull/4771) | |||
* Update TruffleRuby dependencies [\#4815](https://github.com/rvm/rvm/pull/4815) | |||
* Use ruby.git master instead of trunk [\#4840](https://github.com/rvm/rvm/pull/4840) | |||
* Fix RVM version check when using a version newer than the latest release [#4872](https://github.com/rvm/rvm/pull/4872) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke with @mpapis and he liked your PR, so I will merge it now :)
Which seems clearly a bug.