Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default bundler and ruby versions #374

Merged
merged 3 commits into from
Dec 16, 2024
Merged

Conversation

schneems
Copy link
Contributor

Rails 8.0.1 needs Ruby 3.2+ and unfortunately they decided to stop shipping with a Ruby version in the Gemfile. I don't yet have .ruby-version support, but this will at least allow a rails new app to work on Heroku with the default versions.

Rails 8.0.1 needs Ruby 3.2+ and unfortunately they decided to stop shipping with a Ruby version in the Gemfile. I don't yet have `.ruby-version` support, but this will at least allow a `rails new` app to work on Heroku with the default versions.
@schneems schneems force-pushed the schneems/update-default branch from 64dd3e1 to 9a894bf Compare December 16, 2024 22:09
We're no longer modifying metadata, we can safely disable this test (which now fails because the defaults are changing between the versions).
Older versions of JRuby do not play well with newer versions of bundler:

```
  - Running `BUNDLE_BIN="/layers/heroku_ruby/gems/bin" BUNDLE_CLEAN="1" BUNDLE_DEPLOYMENT="1" BUNDLE_GEMFILE="/workspace/Gemfile" BUNDLE_PATH="/layers/heroku_ruby/gems" BUNDLE_WITHOUT="development:test" bundle install`

      Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
      NoMethodError: undefined method `request' for nil:NilClass
      Did you mean?  require
        conflicting_dependencies at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems/resolver/conflict.rb:47
        conflicting_dependencies at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems/exceptions.rb:32
                      initialize at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems/exceptions.rb:26
                             new at org/jruby/RubyClass.java:909
                       exception at org/jruby/RubyException.java:129
                         resolve at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems/resolver.rb:193
                         resolve at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems/request_set.rb:411
                 resolve_current at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems/request_set.rb:423
                  finish_resolve at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems.rb:240
               activate_bin_path at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems.rb:300
                     synchronize at org/jruby/ext/thread/Mutex.java:171
               activate_bin_path at /layers/heroku_ruby/ruby/lib/ruby/stdlib/rubygems.rb:298
                          <main> at /layers/heroku_ruby/bundler/bin/bundle:23
```
@schneems schneems marked this pull request as ready for review December 16, 2024 22:32
@schneems schneems requested a review from a team as a code owner December 16, 2024 22:32
@schneems schneems enabled auto-merge (squash) December 16, 2024 22:36
@schneems schneems merged commit 5e40aed into main Dec 16, 2024
6 checks passed
@schneems schneems deleted the schneems/update-default branch December 16, 2024 23:08
heroku-linguist bot added a commit that referenced this pull request Dec 17, 2024
## heroku/ruby

### Changed

- Default Ruby version is now 3.2.6 ([#374](#374))
- Default Bundler version is now 2.5.6 ([#374](#374))
@heroku-linguist heroku-linguist bot mentioned this pull request Dec 17, 2024
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Dec 17, 2024
## heroku/ruby

### Changed

- Default Ruby version is now 3.2.6 ([#374](heroku/buildpacks-ruby#374))
- Default Bundler version is now 2.5.6 ([#374](heroku/buildpacks-ruby#374))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants