ruby/lib/bundler/source
David Rodríguez c65d7b4bea When running `bundle lock --update <name>`, checkout locked revision of unrelated git sources directly
Since Bundler 2.4, we will try to checkout any branch specified in the
Gemfile, while until Bundler 2.3 we would directly checkout the locked
revision.

This should not make any difference in most situations, but in some edge
cases, like if the branch specified in the `Gemfile` has been renamed,
but the locked revision still exist, it causes an error now while before
it would update the lockfile without issues.

I debated which behavior was best, since I was not sure. But my
conclusion is that if the situation does not require expiring the
lockfile source in favor of the Gemfile source, we should use the locked
revision directly and proceed happily. So I restored Bundler 2.3
behavior.

I think this is consistent with how yanked gems are handled, for example.

Of course, if explicitly updating the git source itself, or all gems, we
will still get any errors like missing branches related to the git source.
2023-03-17 18:50:55 +09:00
..
git When running `bundle lock --update <name>`, checkout locked revision of unrelated git sources directly 2023-03-17 18:50:55 +09:00
path Merge 16c3535413 2022-09-05 14:37:12 +09:00
rubygems Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
gemspec.rb Added bundler as default gems. Revisit [Feature #12733] 2018-11-02 23:07:56 +00:00
git.rb Normalize git sources 2023-03-17 18:50:55 +09:00
metadata.rb Migrate our resolver engine to PubGrub 2022-11-12 07:40:31 +09:00
path.rb Merge RubyGems and Bundler master 2023-01-10 15:53:07 +09:00
rubygems.rb Normalize git sources 2023-03-17 18:50:55 +09:00
rubygems_aggregate.rb [rubygems/rubygems] Improve sources representation 2021-12-03 20:00:50 +09:00