-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix gem.py, hang on uninstall specific gem version #5751
Conversation
move 'cmd.append('--executable')' to all uninstalls rather than only all versions
cc @None @johanwiren |
Thanks for your contribution. Could you please add a changelog fragment? Thanks. |
I don't use gem and am not familiar with it, but couldn't this cause a problem if multiple versions of that gem are installed? I.e. couldn't it remove the executables for all versions? |
Added changelog Gem will only remove an executable if there are no versions left that provide it For example
Will not remove the rake executable Only when uninstalling the last version that provided the executable will it interactively prompt
|
This comment was marked as outdated.
This comment was marked as outdated.
Thanks for the clarification! |
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'll merge this for the next release (at the end of this month) if nobody objects.
(I'm not merging it for tomorrow's release since I want to give others the chance to comment on this, as I really don't know the gem module...)
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.
LGTM
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #5779 🤖 @patchback |
* Update gem.py move 'cmd.append('--executable')' to all uninstalls rather than only all versions * Create 5751-gem-fix-uninstall-hang * Rename 5751-gem-fix-uninstall-hang to 5751-gem-fix-uninstall-hang.yml (cherry picked from commit 2670215)
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #5780 🤖 @patchback |
* Update gem.py move 'cmd.append('--executable')' to all uninstalls rather than only all versions * Create 5751-gem-fix-uninstall-hang * Rename 5751-gem-fix-uninstall-hang to 5751-gem-fix-uninstall-hang.yml (cherry picked from commit 2670215)
@rietvelde thanks for your contribution! |
…specific gem version (#5780) Fix gem.py, hang on uninstall specific gem version (#5751) * Update gem.py move 'cmd.append('--executable')' to all uninstalls rather than only all versions * Create 5751-gem-fix-uninstall-hang * Rename 5751-gem-fix-uninstall-hang to 5751-gem-fix-uninstall-hang.yml (cherry picked from commit 2670215) Co-authored-by: rietvelde <99407273+rietvelde@users.noreply.github.com>
…specific gem version (#5779) Fix gem.py, hang on uninstall specific gem version (#5751) * Update gem.py move 'cmd.append('--executable')' to all uninstalls rather than only all versions * Create 5751-gem-fix-uninstall-hang * Rename 5751-gem-fix-uninstall-hang to 5751-gem-fix-uninstall-hang.yml (cherry picked from commit 2670215) Co-authored-by: rietvelde <99407273+rietvelde@users.noreply.github.com>
move 'cmd.append('--executable')' to all uninstalls rather than only all versions
SUMMARY
When uninstalling a specific version of a gem the playbook execution will hang if there are executables to be removed as gem waits for user input.
Issue does not occur when uninstalling all versions of a gem as '--executable' is added to the command line.
The option --executable should be added with any uninstall regardless if uninstalling a specific version or all versions.
ISSUE TYPE
COMPONENT NAME
gem
ADDITIONAL INFORMATION