Main Problem: Bundler attempts to update checksums when local is set to true if no checksum is present for a gem entry and the bundle config is set to lock during this phase and it breaks the deployment.
Re-create:
- Gemfile
gem 'autoprefixer-rails'
gem 'json'
gem 'jquery-rails'
- Install ruby 3.2.6
- gem install bundler -v 4.0.6
- bundle 4.0.6 install
- remove checksum value from gemfile.lock entry
- run bundle config set frozen true
Ansible script runs below:
cmd: |
source rvm
rvm use 3.2.6@app_gemset --create --default
bundle lock --add-checksum
bundle config set --local deployment true
bundle config set --local without "development:test"
bundle install
ERROR RESPONSE:
Your lockfile has an empty CHECKSUMS entry for "gem". but can't be updated because frozen mode is set. I think this needs to be more compatible with deployment builds of ruby gems.
Main Problem: Bundler attempts to update checksums when local is set to true if no checksum is present for a gem entry and the bundle config is set to lock during this phase and it breaks the deployment.
Re-create:
Ansible script runs below:
ERROR RESPONSE:
Your lockfile has an empty CHECKSUMS entry for "gem". but can't be updated because frozen mode is set. I think this needs to be more compatible with deployment builds of ruby gems.