[rubygems/rubygems] Fix invalid platform removal missing adjacent platforms
https://github.com/rubygems/rubygems/commit/4ce66c41a2
This commit is contained in:
parent
5e16003eec
commit
57fa69f26f
@ -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 ||
|
||||
|
@ -746,6 +746,7 @@ RSpec.describe "bundle install with specific platforms" do
|
||||
sorbet-static (0.5.10696-x86_64-linux)
|
||||
|
||||
PLATFORMS
|
||||
aarch64-linux
|
||||
arm-linux
|
||||
x86_64-linux
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user