Skip to content

Commit

Permalink
Fix unknown command wrappers
Browse files Browse the repository at this point in the history
Rubygems plugin loading was changed in
rubygems >= 3.2 this leads to gem-wrappers
not being loaded in a new context.

This fix registers the gem-wrappers plugin before its
being used.

See rubygems/rubygems#3108
  • Loading branch information
Moritz Winter committed Jan 6, 2021
1 parent 7a347d3 commit 860efb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -16,6 +16,7 @@
* Use libssl-1.0 to install Ree 1.8 on Ubuntu [\#4996](https://github.com/rvm/rvm/pull/4920)
* Fix broken mergeable config [\#5001](https://github.com/rvm/rvm/pull/5001)
* Update brew list command to remove deprecation warning [\#4995](https://github.com/rvm/rvm/pull/4995) [\#5022](https://github.com/rvm/rvm/pull/5022)
* Fix unknown command wrappers with rubygems >= 3.2 [\#5027](https://github.com/rvm/rvm/pull/5027)

#### New interpreters

Expand Down
2 changes: 1 addition & 1 deletion scripts/functions/installer
Expand Up @@ -1417,7 +1417,7 @@ update_gemsets_install_rvm()
if [[ "${__gem_home}" == *"@*" ]]
then continue
fi
__rvm_with "${__gem_home##*/}" gem wrappers regenerate
__rvm_with "${__gem_home##*/}" (gem pristine gem-wrappers --only-plugins || true) && gem wrappers regenerate
done
done | __rvm_dotted " Regenerating gem wrappers in ${#missing[@]} rubies"
fi
Expand Down

0 comments on commit 860efb3

Please sign in to comment.