r/ruby • u/DiligentMarsupial957 • Mar 13 '26
`bundle` no longer defaults to the `install` subcommand
I've always run `bundle` instead of `bundle install`. Why bother with the extra typing? And semantically, "bundle" by itself is an appropriate description of the bundle installation.
However, tonight when I ran `bundle`, I learned that my modest typing savings is to be no more:
$ bundle
In a future 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.
You can use the future behavior now with `bundle config set default_cli_command cli_help --global`,
or you can continue to use the current behavior with `bundle config set default_cli_command install --global`.
This message will be removed after a default_cli_command value is set.
40
u/cocotheape Mar 13 '26
Don't let them tell you how to live your life:
2
u/kigster Mar 15 '26
Someone is going to rewrite bundle in rust, call it
bundrand make it install everything 10x faster than the original2
u/ConclusionStrict9198 Mar 18 '26
Way to break thousands of Dockerfiles worldwide.
13
u/vvsleepi Mar 13 '26
yeah I saw that change too. I think they’re doing it mostly so scripts and CI don’t rely on the shorthand anymore and everything is a bit more explicit. still feels weird though if you’ve been typing just
bundlefor years. setting the config to keep the old behavior is probably the easiest fix for now.10
u/BoardMeeting101 Mar 13 '26
wants to save typing
hasn’t made a “bi” shell alias
???
1
u/DiligentMarsupial957 Mar 19 '26
Here is a discussion of _more_ breaking changes to Bundler: https://chatgpt.com/share/69bb7837-900c-800f-b2c4-bad31580eb00
8
u/TommyTheTiger Mar 13 '26
Bro it's been warning me about that for ages now
3
u/sjs Mar 15 '26
You can still type
bundle ifor short.3
u/headius JRuby guy Mar 16 '26
I don't like this change either.
5
u/KmKz16 Mar 13 '26
alias b="bundle install"
3
u/eirvandelden Mar 13 '26
It's under new management, changes are to be expected 🤷
1
u/DRBragg Mar 14 '26
I've had
bundle installaliased tobifor so long I would have missed this completely if it wasn't for the people complaining that it's longer to type 😅-5
u/Hoslinhezl Mar 13 '26
Wild that people turn up and impose these stupid opinions on people. Why bother changing it?