Skip to content

Conversation

@hsbt
Copy link
Member

@hsbt hsbt commented Nov 28, 2025

The current install is not helpful outside of Gemfile location. This change show the cli_help if it raised GemfileNotFound. This change created by @byroot

And I update the current warn message to info level. and it will not display if default_cli_command value is present.

Closes #9125
Closes #9126

byroot and others added 4 commits November 29, 2025 07:47
Fix: #9124

This behavior is a deeply entrenched convention and changing it
will annoy lots of developers with unclear gains.
As mentioned in #9124,
the intent for changing the default command was to be more welcoming.

I think we can acheive that by attempting to install, but to print
that same help message if there is no Gemfile.

That should address both concerns.
config[:current_command] = command
send(name)
ensure
config[:current_command] = original_command
@hsbt hsbt enabled auto-merge November 28, 2025 23:44
@hsbt hsbt merged commit 4e0cc9c into master Nov 28, 2025
76 checks passed
@hsbt hsbt deleted the default-cli-install-revise2 branch November 28, 2025 23:49
MSG
unless Bundler.settings[:default_cli_command]
Bundler.ui.info <<-MSG
In the feature version of Bundler, running `bundle` without argument will no longer run `bundle install`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
In the feature version of Bundler, running `bundle` without argument will no longer run `bundle install`.
In a future version of Bundler, running `bundle` without argument will no longer run `bundle install`.

Bundler.ui.info <<-MSG
In the feature version of Bundler, running `bundle` without argument will no longer run `bundle install`.
Instead, the `cli_help` command will be displayed. Please use `bundle install` explicitly for scripts like CI/CD.
If you wish to use feature behavior now with `bundle config set default_cli_command cli_help --global`
Copy link
Member

@eregon eregon Nov 29, 2025

Choose a reason for hiding this comment

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

Suggested change
If you wish to use feature behavior now with `bundle config set default_cli_command cli_help --global`
You can use the future behavior now with `bundle config set default_cli_command cli_help --global`,

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.

5 participants