-
-
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
bundle remove
does not update lockfile
#4889
Comments
Apparently this is intentional and the way to also update the lockfile is to use
I don't know why this is optional, to be honest. It should be the default and only behavior in my opinion. |
I agree it should be the default, especially since |
@indirect, it means to remove the |
@ceritium yes, it means removing the |
Describe the problem as clearly as you can
When using
bundle add
to add a gem, the lockfile is updated. However, when usingbundle remove
to take a gem out of the Gemfile, the Gemfile.lock is not updated. I would expectadd
andremove
to by symmetrical, and to both update the lockfile. Instead, I have to runbundle lock
after runningbundle remove
.Post steps to reproduce the problem
Which command did you run?
bundle remove rake
What were you expecting to happen?
I expected both
Gemfile
andGemfile.lock
to be updated to no longer containrake
.What actually happened?
Only
Gemfile
was updated.If not included with the output of your command, run
bundle env
and paste the output belowBundler Build Metadata
Bundler config
The text was updated successfully, but these errors were encountered: