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
Binstubs made by Rails 4 are different from those made by Bundler 1.3 (pre5) #8974
Comments
|
This will be fixed in the next bundler --pre release. It won't overwrite executables you already have in |
|
It was fine with pre-releases (including pre.8), but with the I'm using Rails |
|
Bundler reverted this change for semver compliance. To avoid it, don't use |
|
@jeremy Thanks, but what if I want to create binstubs, only not overwriting them when they are already present? |
|
@jlecour Use the new |
|
so is there a Rails 4 friendly way to create all binstubs without individually specifying the names of each executable. Currently I do: |
|
The idea is that you should do them individually; gems provide lots of executables you may or may not use. It's a one-time thing that doesn't take very long. You shouldn't be using |
|
Why shouldn't it be one's choice whether to have binstubs of everything or |
|
Bundler did attempt to change itself to not overwrite bin entries on every invocation, so that the rails entry would be left alone, but this wasn't backwards compatible, so it was reverted: rubygems/bundler@f00e085 I agree with you about the way it should be - it was perhaps a hasty move by Rails to stick its business into the bin directory. FWIW, in practice I find I don't have many bin-able gems and handling them one at a time has not been a big deal. |
Hi,
I'm working on a Rails 4 app (using 555cb0a) and Bundler
1.3.0.pre.5.When I execute
bin/rake rails:updateI end up with those binstubs :And later if I
bin/bundlethey are changed back to :Which of those should I keep?
Thanks
The text was updated successfully, but these errors were encountered: