You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tries to resolve your bundle using only locally installed gems.
If it finds any gem is missing, it throws an error.
If nothing is missing, it succeeds, and potentially "completes" the lockfile if anything was missing from it.
In other words, in your example, I think it succeeds (and fixes the lockfile) because you had mocha previously installed. If mocha had not been installed, it would've given an error.
I think the easiest way to fix this is to document the current behavior?
Describe the problem as clearly as you can
Nothing in the docs indicates that
bundle check
should modifyGemfile.lock
, but it seems to be doing so.Did you try upgrading rubygems & bundler?
Yes: ruby 3.3.0, rubygems 3.5.3, bundler 2.5.9
Post steps to reproduce the problem
Create a new
Gemfile
, e.g.:Run
bundle
to create an almost-emptyGemfile.lock
.Edit the
Gemfile
and addgem "mocha"
.Run
bundle check
.What were you expecting to happen?
Unsure, but
Gemfile.lock
should not change.What actually happened?
Gemfile.lock
is changed and now includesmocha
.cc @vinistock
The text was updated successfully, but these errors were encountered: