Skip to content

Upgrade Ruby to 3.x? #594

Closed
Closed
@traviswimer

Description

@traviswimer

Introduction

Currently, the .ruby-version file in RN projects sets the Ruby version to 2.7.6. From what I understand, Ruby's support for 2.7 will end in April (it is already considered a "security maintenance" branch).

Is it possible to upgrade to Ruby 3 in the near future?

Details

I'm not sure why React Native depends on such an old version of Ruby, but I assume there is likely an important reason. What is preventing it from being upgraded?

Ruby 2.7's end-of-life came to my attention because the CI service I'm using is going to drop support. I'm sure I can find a way to work around this and install it manually, but it's representative of the types of problems that may arise in the future.

Also, there will no longer be any security fixes on 2.7. I'm not sure to what extent this should be concerning since in this context Ruby itself isn't used in production, but I would imagine there is still cause for concern.

Discussion points

  • Why is React Native currently using an outdated version?
  • What problems will result from Ruby 2.7's end-of-life?
  • Are there any security concerns?
  • Is it feasible to upgrade to Ruby 3.x?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions