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

Don't warn on bundle binstubs --standalone --all #6312

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

composerinteralia
Copy link
Contributor

What was the end-user or developer problem that led to this PR?

Prior to this commit bundle binstubs --standalone --all would output a warning about not being able to generate a standalone binstub for bundler.

This warning predates the --all option, and I don't think it makes sense in this context. The warning makes good sense when explicitly trying to generate a bundler standalone binstub with bundle binstubs bundler --standalone, since that command won't do what the user might have expected. But --all is not specifically asking for bundler, and having it report each time that the bundler binstubs could not be generated does not seem particularly helpful. The only way to make that warning go away would be to stop using --standalone --all.

What is your fix for the problem, implemented in this PR?

This commit skips the warning when running with the --all option.

Make sure the following tasks are checked

Prior to this commit `bundle binstubs --standalone --all` would output a
warning about not being able to generate a standalone binstub for
bundler.

This warning predates the `--all` option, and I don't think it makes
sense in this context. The warning makes good sense when explicitly
trying to generate a bundler standalone binstub with `bundle binstubs
bundler --standalone`, since that command won't do what the user might
have expected. But `--all` is not specifically asking for bundler, and
having it report each time that the bundler binstubs could not be
generated does not seem particularly helpful. The only way to make that
warning go away would be to stop using `--standalone --all`.

This commit skips the warning when running with the `--all` option.
Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes total sense to me!

@deivid-rodriguez deivid-rodriguez changed the title Don't warn on bundler binstubs --standalone --all Don't warn on bundle binstubs --standalone --all Jan 27, 2023
@simi simi merged commit be1cc4a into rubygems:master Jan 27, 2023
deivid-rodriguez pushed a commit that referenced this pull request Jan 31, 2023
Don't warn on `bundle binstubs --standalone --all`

(cherry picked from commit be1cc4a)
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.

None yet

3 participants