Skip to content

Exit with status 1 on an invalid uninstall selection - #10142

Merged
hsbt merged 1 commit into
masterfrom
fail-invalid-uninstall-selection
Nov 27, 2026
Merged

hsbt merged 1 commit into
masterfrom
fail-invalid-uninstall-selection

Conversation

@hsbt

@hsbt hsbt commented Nov 27, 2026

Copy link
Copy Markdown
Member

When multiple versions of a gem are installed, gem uninstall reports an invalid selection but exits successfully. Scripts therefore see a successful uninstall even though every version is still installed.

Exit with status 1 and keep the existing prompt message.

Fixes #6028.

Generated with Claude Code

Scripts could see a successful exit even though the version prompt rejected the selection and left every version installed.

#6028
@hsbt
hsbt merged commit fc37d0f into master Nov 27, 2026
114 checks passed
@hsbt
hsbt deleted the fail-invalid-uninstall-selection branch November 27, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gem uninstall somegem when multiple gem are installed: exit codes & ctrl+d handling when no selection given

1 participant