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 [rubygems/rubygems] Revert multi ruby{,gems} version requirement fix 2020-06-05 07:32:42 +09:00
fetcher
installer [rubygems/rubygems] Fix parallel installer race condition 2020-06-05 07:32:42 +09:00
plugin Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
resolver Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
settings
source Update links from rubygems/bundler to rubygems/rubygems 2020-06-05 07:32:42 +09:00
templates Remove a bunch of files that were deleted upstream 2020-05-23 07:28:57 +09:00
ui
vendor Remove a bunch of files that were deleted upstream 2020-05-23 07:28:57 +09:00
build_metadata.rb
bundler.gemspec Link to pre-filtered issue list 2020-06-05 07:32:42 +09:00
capistrano.rb
cli.rb [rubygems/rubygems] Fix bundle gem ignoring global gem.test config 2020-06-05 07:32:42 +09:00
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 Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
deployment.rb
deprecate.rb
dsl.rb Sync Bundler PR #3624 2020-05-22 20:32:30 +09:00
endpoint_specification.rb
env.rb
environment_preserver.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
errors.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
feature_flag.rb Sync Bundler PR #3624 2020-05-22 20:32:30 +09:00
fetcher.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
friendly_errors.rb Update links from rubygems/bundler to rubygems/rubygems 2020-06-05 07:32:42 +09:00
gem_helper.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
gem_helpers.rb
gem_tasks.rb
gem_version_promoter.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
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 Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
installer.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
lazy_specification.rb Sync Bundler PR #3624 with HEAD commits 2020-05-22 20:32:30 +09:00
lockfile_generator.rb
lockfile_parser.rb
match_platform.rb
mirror.rb
plugin.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
process_lock.rb
psyched_yaml.rb Sync Bundler PR #3624 with HEAD commits 2020-05-22 20:32:30 +09:00
remote_specification.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
resolver.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
retry.rb
ruby_dsl.rb
ruby_version.rb
rubygems_ext.rb Sync Bundler PR #3624 with HEAD commits 2020-05-22 20:32:30 +09:00
rubygems_gem_installer.rb Sync Bundler PR #3624 with HEAD commits 2020-05-22 20:32:30 +09:00
rubygems_integration.rb Sync Bundler PR #3624 with HEAD commits 2020-05-22 20:32:30 +09:00
runtime.rb
settings.rb Sync Bundler PR #3624 2020-05-22 20:32:30 +09:00
setup.rb
shared_helpers.rb
similarity_detector.rb
source.rb
source_list.rb
spec_set.rb
stub_specification.rb Sync Bundler PR #3624 with HEAD commits 2020-05-22 20:32:30 +09:00
ui.rb
uri_credentials_filter.rb
vendored_fileutils.rb
vendored_molinillo.rb
vendored_persistent.rb
vendored_thor.rb
vendored_uri.rb
version.rb Update the bundler version with master branch 2020-05-13 07:54:37 +09:00
version_ranges.rb
vlad.rb
worker.rb
yaml_serializer.rb