heroku / heroku/buildpacks-ruby

Support `.ruby-version`

Open
#346 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30
Forks
7
Avg merge
1d 17h
Merged PRs (30d)
5

Description

In https://github.com/rails/rails/issues/51089 the `.ruby-version` file is being adopted by Rails in Rails 8. They're also dropping support for integrating it with bundler by default. To that end we can add support for the `.ruby-version` file but it's unclear which should "win" when there's a conflict.

Here's an example implementation of the `.python-version` https://github.com/heroku/buildpacks-python/pull/272

The logic should be like this:

- If there is a Ruby version in `Gemfile.lock`, use it. Otherwise use `.ruby-version` otherwise Error.
- If there's a ruby version in both the Gemfile.lock and the .ruby-version error if they disagree

Known tasks:

- [ ] Add support for `.ruby-version` file as described above
- [ ] Research and document syntax of most common tools for `.ruby-version`
- [ ] Add JVM detection to also look at the .ruby-version file

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.