Skip to content

Sync Gemfile.lock Ruby version and add checksums to Gemfile.lock#1428

Merged
etiennebarrie merged 2 commits intoShopify:mainfrom
larouxn:sync_gemfile_lock_ruby
Mar 25, 2026
Merged

Sync Gemfile.lock Ruby version and add checksums to Gemfile.lock#1428
etiennebarrie merged 2 commits intoShopify:mainfrom
larouxn:sync_gemfile_lock_ruby

Conversation

@larouxn
Copy link
Copy Markdown
Contributor

@larouxn larouxn commented Mar 25, 2026

Description

Proposing we sync the Ruby version in the Gemfile.lock with the version in .ruby-version and add checksums to the Gemfile.lock as modern best practices.

Follow up to #1427

References

Ruby version in Gemfile.lock

RUBY VERSION (optional)

The Ruby version specified in the Gemfile, when this Gemfile.lock was created. If a Ruby version is specified in a .ruby_version file instead this section will not be present (as Bundler will consider the Gemfile / Gemfile.lock agnostic to the installer's Ruby version).

Checksums in Gemfile.lock

https://blog.rubygems.org/2024/12/19/bundler-v2-6

@etiennebarrie
Copy link
Copy Markdown
Member

While we're at it, we might as well add the checksums to the lockfile, that's the new default when you create a lockfile.

The Ruby version specified in the Gemfile, when this Gemfile.lock was created. If a Ruby version is specified in a .ruby_version file instead this section will not be present (as Bundler will consider the Gemfile / Gemfile.lock agnostic to the installer's Ruby version).

It would be nice to fix this upstream though.

@larouxn
Copy link
Copy Markdown
Contributor Author

larouxn commented Mar 25, 2026

While we're at it, we might as well add the checksums to the lockfile, that's the new default when you create a lockfile.

Have seen that. Sure thing. I can take a look at doing that in this PR.

It would be nice to fix this upstream though.

Do you mean so that Bundler automatically keeps the Gemfile.lock Ruby version in sync with .ruby-version?

@larouxn larouxn marked this pull request as draft March 25, 2026 14:53
@larouxn larouxn changed the title Sync Ruby version in Gemfile.lock with dev Ruby 🚧 Sync Gemfile.lock Ruby version and add checksums Mar 25, 2026
@larouxn larouxn marked this pull request as ready for review March 25, 2026 14:57
@larouxn larouxn changed the title 🚧 Sync Gemfile.lock Ruby version and add checksums Sync Gemfile.lock Ruby version and add checksums to Gemfile.lock Mar 25, 2026
@etiennebarrie etiennebarrie merged commit 71f48d7 into Shopify:main Mar 25, 2026
22 checks passed
@larouxn larouxn deleted the sync_gemfile_lock_ruby branch March 25, 2026 18:05
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