summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-04-28 00:05:22 +0200
committergit <svn-admin@ruby-lang.org>2022-05-04 06:45:15 +0900
commitba4ec45cf156932a5a63cd9597aa210760f4390f (patch)
treeb185eb78ce97d6dda41f0245d6d47bcbbbd16966
parent379f5a6e8ef4e6c131abbb3c635e6136e031279b (diff)
[rubygems/rubygems] Don't converge specs in frozen mode
https://github.com/rubygems/rubygems/commit/ea09bc4680
-rw-r--r--lib/bundler/definition.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index c1d865d049..8877d2661e 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -256,14 +256,14 @@ module Bundler
# @return [SpecSet] resolved dependencies
def resolve
@resolve ||= begin
- last_resolve = converge_locked_specs
if Bundler.frozen_bundle?
Bundler.ui.debug "Frozen, using resolution from the lockfile"
- last_resolve
+ @locked_specs
elsif !unlocking? && nothing_changed?
Bundler.ui.debug("Found no changes, using resolution from the lockfile")
- last_resolve
+ converge_locked_specs
else
+ last_resolve = converge_locked_specs
# Run a resolve against the locally available gems
Bundler.ui.debug("Found changes from the lockfile, re-resolving dependencies because #{change_reason}")
expanded_dependencies = expand_dependencies(dependencies + metadata_dependencies, true)
@@ -693,7 +693,7 @@ module Bundler
# Replace the locked dependency's source with the equivalent source from the Gemfile
dep = @dependencies.find {|d| s.satisfies?(d) }
- s.source = (dep && dep.source) || sources.get(s.source) || sources.default_source unless Bundler.frozen_bundle?
+ s.source = (dep && dep.source) || sources.get(s.source) || sources.default_source
next if @unlock[:sources].include?(s.source.name)