Skip to content

Support for x64-mingw-ucrt platform #789

@sk-ys

Description

@sk-ys

Currently, we're using the /(win|w)32$/ regular expression pattern to identify Windows.
However, this pattern does not correctly identify Windows when using Ruby 3.1 or later.
Since Ruby 3.1, the platform reported by the RubyInstaller for Windows is x64-mingw-ucrt.
Please consider updating the code to support this platform.

foreman/lib/foreman.rb

Lines 13 to 15 in a5f9b78

def self.windows?
defined?(RUBY_PLATFORM) and RUBY_PLATFORM =~ /(win|w)32$/
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions