summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas La Roux <[email protected]>2025-05-30 15:55:24 +0900
committerHiroshi SHIBATA <[email protected]>2025-06-05 19:12:37 +0900
commit803dae70cbed180079beb717dee23a4bc8dabf1b ()
tree46e325a638d5a0c8432ce0df5176c8cf8cf4edb2 /lib
parent21bce66f59c449896005fed26d5559184d11abf0 (diff)
[rubygems/rubygems] Deprecate x64-mingw32 legacy Windows platform in favor of x64-mingw-ucrt
https://.com/rubygems/rubygems/commit/71c969be44
-rw-r--r--lib/bundler/lockfile_parser.rb17
-rw-r--r--lib/bundler/rubygems_ext.rb4
2 files changed, 19 insertions, 2 deletions
@@ -1,5 +1,7 @@
# frozen_string_literal: true
module Bundler
class LockfileParser
include GemHelpers
@@ -139,6 +141,21 @@ module Bundler
end
@pos.advance!(line)
end
@most_specific_locked_platform = @platforms.min_by do |bundle_platform|
platform_specificity_match(bundle_platform, local_platform)
end
@@ -56,8 +56,8 @@ module Gem
MSWIN = Gem::Platform.new("mswin32")
MSWIN64 = Gem::Platform.new("mswin64")
MINGW = Gem::Platform.new("x86-mingw32")
- X64_MINGW = [Gem::Platform.new("x64-mingw32"),
- Gem::Platform.new("x64-mingw-ucrt")].freeze
UNIVERSAL_MINGW = Gem::Platform.new("universal-mingw")
WINDOWS = [MSWIN, MSWIN64, UNIVERSAL_MINGW].flatten.freeze
X64_LINUX = Gem::Platform.new("x86_64-linux")