aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler
diff options
context:
space:
mode:
authorBo Anderson <mail@boanderson.me>2023-11-17 04:27:24 +0000
committergit <svn-admin@ruby-lang.org>2023-11-21 19:11:15 +0000
commit57fa69f26f134560e4de2e541a31d187dfc397c7 (patch)
tree4aa1fc745caf691b322184ca2dcc896c3dae8918 /lib/bundler
parent5e16003eec99662cddeb143ff4f8d2e869c7ffc5 (diff)
downloadruby-57fa69f26f134560e4de2e541a31d187dfc397c7.tar.gz
[rubygems/rubygems] Fix invalid platform removal missing adjacent platforms
https://github.com/rubygems/rubygems/commit/4ce66c41a2
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/definition.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 9ef0abed93..4162e19c5e 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -972,7 +972,7 @@ module Bundler
def remove_invalid_platforms!(dependencies)
return if Bundler.frozen_bundle?
- platforms.each do |platform|
+ platforms.reverse_each do |platform|
next if local_platform == platform ||
(@new_platform && platforms.last == platform) ||
@path_changes ||