-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add --force
option to gem sources
command
#3956
Conversation
A tiny note, don't reference issues in the PR title or commit message, only in the PR body. Rationale is:
|
Updated commit message as requested 👍 |
--force
option to gem sources
command
ℹ️ This adds |
@simi I had a chat with @deivid-rodriguez about the approach here so here is the full summary of the above 'Resolved' conversation.
|
Yes @simi, adding a global |
9 failed checks but all it says on each one is 'This check failed' on the Details. Could this be a build server restart or something? |
https://github.com/rubygems/rubygems/actions/runs/261103746
Yes, it seems like CI problem. |
@simi is there anything that will restart these after it fails in this state or do I have to squash on an empty commit to trigger it to run everything again based on a new commit hash? |
I can't restart, but you can do |
Thanks @simi, done :) |
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.
Looks good to me, just noticed a couple of small things.
Allows --force to override use of http URLs and typo checks
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.
Thanks!
Add `--force` option to `gem sources` command (cherry picked from commit ff86ba4)
Add `--force` option to `gem sources` command (cherry picked from commit ff86ba4)
Allows --force to override use of http URLs and typo checks
Description:
As discussed in #3955 implements a --force option to the sources command
What was the end-user or developer problem that led to this PR?
Discussed in #3955 as a complete solution to scripted use of gem which cannot handle no tty input within ask_yes_no
What is your fix for the problem, implemented in this PR?
Localised fix within commands/sources_command.rb since implementation within user_interaction.rb suggests the creation of user_interaction_options.rb to follow the framework but this would require a larger scale change to centralise the several already implemented --force options within other modules. --force chosen to be consistent with other module usage vs -y.
Also note that --force potentially does different things in other modules so the refactor mentioned is potentially extensive which is why the override is confined to the sources command implementation.
Closes #3955.
Tasks:
I will abide by the code of conduct.