From 8dd63b89d97a0ab149288f2e46d814fb60cb3ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 17 Jan 2022 23:01:01 +0100 Subject: [PATCH] [rubygems/rubygems] Move comment where the actual replacement happens https://github.com/rubygems/rubygems/commit/d60acdf80d --- lib/bundler/definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 71322d6d41..536099a20a 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -740,9 +740,9 @@ module Bundler end specs.each do |s| - # Replace the locked dependency's source with the equivalent source from the Gemfile dep = @dependencies.find {|d| s.satisfies?(d) } + # Replace the locked dependency's source with the equivalent source from the Gemfile s.source = (dep && dep.source) || sources.get_with_fallback(s.source) next if @unlock[:sources].include?(s.source.name)