Skip to content

Add Ruby 3.2 support #11407

@JunichiIto

Description

@JunichiIto

Ruby 3.2.0 has been released, but I couldn't deploy to Heroku with following error:

Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 8 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (11/11), 1.47 KiB | 1.47 MiB/s, done.
Total 11 (delta 8), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-22 stack
remote: -----> Using buildpack: heroku/ruby
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.3.25
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-3.2.0
remote:        Ruby version change detected. Clearing bundler cache.
remote:        Old: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
remote:        New: ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
remote: -----> Installing dependencies using bundler 2.3.25
remote:        Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote:        Fetching gem metadata from https://rubygems.org/..........
remote:        google-protobuf-3.21.12-x86_64-linux requires ruby version < 3.2.dev, >= 2.5,
remote:        which is incompatible with the current version, 3.2.0
remote:        Bundler Output: Fetching gem metadata from https://rubygems.org/..........
remote:        google-protobuf-3.21.12-x86_64-linux requires ruby version < 3.2.dev, >= 2.5,
remote:        which is incompatible with the current version, 3.2.0
remote: 
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !	Push rejected to foo-bar.
remote: 
To https://git.heroku.com/foo-bar.git
 ! [remote rejected] ruby-3-2 -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/foo-bar.git'

I'd appreciate if you could add Ruby 3.2 support soon.

Related links (discussions about Ruby 3.1)

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