From a5d658cb7a6ecedc5eadf6709ea31bf5cf0229be Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 9 Sep 2024 19:06:33 +0900 Subject: [PATCH] [rubygems/rubygems] Removed duplicated dependencies that used by bundler inline https://github.com/rubygems/rubygems/commit/d46b6a49af --- lib/bundler/inline.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundler/inline.rb b/lib/bundler/inline.rb index 238e650d65..1b12de1d7c 100644 --- a/lib/bundler/inline.rb +++ b/lib/bundler/inline.rb @@ -71,6 +71,7 @@ def gemfile(install = false, options = {}, &gemfile) "The #{name} gem was resolved to #{version}, but #{activated_version} was activated by Bundler while installing it, causing a conflict. " \ "Bundler will now retry resolving with #{activated_version} instead." + builder.dependencies.delete_if {|d| d.name == name } builder.instance_eval { gem name, activated_version } definition = builder.to_definition(nil, true)