Move the production image to ruby:4.0.9-slim-bookworm (same distro, so native gems build against the same libraries) and the dev shell to nixpkgs' ruby_4_0, also 4.0.9, so the tests run on the Ruby that ships. Ruby 4's Bundler 4 dropped `bundle install --without`; set BUNDLE_WITHOUT instead, which Bundler 2 reads too. The lockfile stays BUNDLED WITH 2.7.2 (nixpkgs' bundler; Bundler 4 switches to it). Checked before merging: the image builds, keeps the test gems out, and boots Puma 8.0.2 on Ruby 4.0.9 through to opening the database. Rollback: revert this commit and redeploy (or re-tag the previous image). Assisted-by: Claude:opus-5-5
27 lines
567 B
JSON
27 lines
567 B
JSON
{
|
|
"nodes": {
|
|
"nixpkgs": {
|
|
"locked": {
|
|
"lastModified": 1794386569,
|
|
"narHash": "sha256-x9sADJvoVG0L6RejZB+/BB4YiGZFBZrfTlhF4uBq1tQ=",
|
|
"owner": "NixOS",
|
|
"repo": "nixpkgs",
|
|
"rev": "d4f25a3e562008648d45bcf2d70bcc7422cad84e",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "NixOS",
|
|
"ref": "nixos-unstable",
|
|
"repo": "nixpkgs",
|
|
"type": "github"
|
|
}
|
|
},
|
|
"root": {
|
|
"inputs": {
|
|
"nixpkgs": "nixpkgs"
|
|
}
|
|
}
|
|
},
|
|
"root": "root",
|
|
"version": 7
|
|
}
|