Repository navigation
Description
Heroku's build now warns on every deploy:
There is a more recent Ruby version available for you to use: 4.0.9. The latest version will include security and bug fixes.
We're on 4.0.6. Renovate's PR #7209 tries to do this (to 4.0.8), but it's red on every check. It only changes Dockerfile, Gemfile and Gemfile.lock, while CI's ruby/setup-ruby reads .ruby-version, so the versions disagree. This issue is the complete version of that change.
Files to change (4.0.6 → 4.0.9)
The last Ruby bump, #7154 (4.0.6), is a good template. These are the current pins:
-
.ruby-version -
.tool-versions -
Gemfile:ruby "4.0.6" -
Gemfile.lock: theRUBY VERSIONsection. Runbundle installafter switching Ruby rather than editing it by hand. -
Dockerfile: bothFROM ruby:4.0.6-alpinelines, the build and final stages -
flake.nix:pkgs."ruby-4.0.6". Check that the pinned nixpkgs hasruby-4.0.9; if it doesn't, say so in the PR and leave it. -
.devcontainer/post-create.sh -
README.md,doc/MAC_SETUP.md,doc/LINUX_SETUP.md,doc/WSL_SETUP.md
Not in scope: bin/setup line 146 (gem install bundler -v 4.0.6) and BUNDLED WITH are the Bundler version, not Ruby, so leave them alone. Also leave form-data 4.0.6 in package-lock.json, which is an unrelated npm package. Tip: git grep -n '4\.0\.6' finds every pin.
How to do it
- Install 4.0.9 with your version manager (
asdf install ruby 4.0.9,rbenv install 4.0.9, ormise). - Update the files above, then run
bundle install. - Run
bin/rails speclocally, or at leastbundle exec rspec spec/models, plusbin/lint.
Acceptance
- Every CI check is green, including
docker, which builds the Dockerfile. -
git grep -n '4\.0\.6'shows no Ruby pins (Bundler and npm hits are fine). - Close chore(deps): update ruby docker tag #7209 when this merges. Renovate may reopen it for 4.0.9, which is fine as long as it's green.
Maintainers: the Heroku build reads Gemfile's ruby line, so the deploy after merge installs 4.0.9 automatically. Check the build log for Using Ruby version: ruby-4.0.9.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
1steve78 commentedon Nov 5, 2026
Hi @compwron, I'd like to work on this issue.
I'll go through the existing Ruby version configuration across the listed files, update the relevant pins from 4.0.6 to 4.0.9, and regenerate
Gemfile.lockusingbundle installrather than modifying it manually.I'll also check whether the pinned nixpkgs provides Ruby 4.0.9 and run the relevant tests and lint checks before submitting a PR.
Please let me know if anyone is already working on this. Thanks!
Akash-Dhanwate commentedon Nov 8, 2026
hey I like to work on these issue if no one is assigned yet ? @compwron
compwron commentedon Nov 8, 2026
Go for it ! :)