Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade rack to v3 for rails 7?

How to upgrade the rack gem from v2 to v3 for rails 7?

If you try to use:

gem 'rack', '>= 3'

Bundle will show you the result of the upgrade:

Bundler could not find compatible versions for gem "rack":
  In Gemfile:
    rack (>= 3)

    rails (~> 7.0.4) was resolved to 7.0.4, which depends on
      actionpack (= 7.0.4) was resolved to 7.0.4, which depends on
        rack (~> 2.0, >= 2.2.0)
like image 381
Dmitry Polushkin Avatar asked Sep 02 '25 10:09

Dmitry Polushkin


1 Answers

For the beginning of 2023 it's not possible to upgrade rack to v3 for rails v7.0 because it's not prepared yet. Please follow this PR to get the latest information on the ongoing process:

  • https://github.com/rails/rails/pull/46594
  • https://github.com/rails/rails/pull/47052
like image 137
Dmitry Polushkin Avatar answered Sep 03 '25 22:09

Dmitry Polushkin