1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/bundler
David Rodríguez f8f3f11ed5 [rubygems/rubygems] Fix only_update_to_newer_versions regression
The `only_update_to_newer_versions` feature flag will enable some new
behaviour in bundler 3 (or maybe earlier if we decide to consider it a
bug fix) that prevents `bundle update` from unexpectedly downgrading
direct dependencies.

This seems reasonable, but the current implementation is adding
additional requirements for all locked dependencies, not only from the
ones in the `Gemfile`. That causes some situations where the `Gemfile`
is edited and will resolve to older versions to start failing.

This commit fixes the problem by making sure extra requirements are
added exclusively for direct dependencies in the `Gemfile`, not for all
direct dependencies in the lock file.

https://github.com/rubygems/rubygems/commit/128b4596e1
2020-06-18 19:14:15 +09:00
..
cli Update links from rubygems/bundler to rubygems/rubygems 2020-06-05 07:32:42 +09:00
compact_index_client
fetcher
installer
plugin
resolver
settings
source Update links from rubygems/bundler to rubygems/rubygems 2020-06-05 07:32:42 +09:00
templates
ui
vendor
build_metadata.rb
bundler.gemspec Link to pre-filtered issue list 2020-06-05 07:32:42 +09:00
capistrano.rb
cli.rb
compact_index_client.rb
constants.rb
current_ruby.rb
definition.rb [rubygems/rubygems] Fix only_update_to_newer_versions regression 2020-06-18 19:14:15 +09:00
dep_proxy.rb
dependency.rb
deployment.rb
deprecate.rb
dsl.rb
endpoint_specification.rb
env.rb
environment_preserver.rb
errors.rb
feature_flag.rb
fetcher.rb
friendly_errors.rb Update links from rubygems/bundler to rubygems/rubygems 2020-06-05 07:32:42 +09:00
gem_helper.rb
gem_helpers.rb
gem_tasks.rb
gem_version_promoter.rb
gemdeps.rb
graph.rb
index.rb
injector.rb [rubygems/rubygems] Remove multiline gem specifications correctly 2020-06-05 07:32:42 +09:00
inline.rb
installer.rb
lazy_specification.rb
lockfile_generator.rb
lockfile_parser.rb
match_platform.rb
mirror.rb
plugin.rb
process_lock.rb
psyched_yaml.rb
remote_specification.rb
resolver.rb
retry.rb
ruby_dsl.rb
ruby_version.rb
rubygems_ext.rb
rubygems_gem_installer.rb
rubygems_integration.rb
runtime.rb
settings.rb
setup.rb
shared_helpers.rb
similarity_detector.rb
source.rb
source_list.rb
spec_set.rb
stub_specification.rb
ui.rb
uri_credentials_filter.rb
vendored_fileutils.rb
vendored_molinillo.rb
vendored_persistent.rb
vendored_thor.rb
vendored_uri.rb
version.rb
version_ranges.rb
vlad.rb
worker.rb
yaml_serializer.rb