fix ruby 4 checksum issue#68
Merged
Merged
Conversation
In certain situations (like the bosh director) bundler will not write a checksum to the lockfile at compile time and will then try to update the lockfile at runtime when it is mounted read only. Disabling writing checksums prevents this from being an issue.
aramprice
approved these changes
Jul 16, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates the Ruby 4.0 compile-time Bundler configuration to avoid runtime attempts to rewrite Gemfile.lock (notably when the release is run in environments where the lockfile is mounted read-only, such as a BOSH director).
Changes:
- Set
bundle config set --local lockfile_checksums falsein the Ruby 4.0bosh_bundle()helper so Bundler won’t try to add/write lockfile checksums later at runtime.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In certain situations (like the bosh director) bundler will not write a checksum to the lockfile at compile time and will then try to update the lockfile at runtime when it is mounted read only. Disabling writing checksums prevents this from being an issue.