Skip to content
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

Merged
merged 2 commits into from
Feb 17, 2020

Conversation

eregon
Copy link
Contributor

@eregon eregon commented Feb 15, 2020

  • 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')

Which seems clearly a bug.

* 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')
@eregon eregon added the bug label Feb 15, 2020
@eregon eregon added this to the rvm-1.29.10 milestone Feb 15, 2020
@@ -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)
Copy link
Member

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!

Copy link
Contributor Author

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?

Copy link
Member

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
Copy link
Member

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?

Copy link
Member

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)
Copy link
Member

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 :)

@pkuczynski pkuczynski merged commit 9d2304c into rvm:master Feb 17, 2020
@eregon eregon deleted the fix-rvm-version-warning branch February 17, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants