Skip to content

Circular Reference Issue with Bundler 4.0.* checksum verification during DEPLOYMENTS #9367

@RailsCod3rFuture

Description

@RailsCod3rFuture

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:

  1. Gemfile
  gem 'autoprefixer-rails'
  gem 'json'
  gem 'jquery-rails'
  1. Install ruby 3.2.6
  2. gem install bundler -v 4.0.6
  3. bundle 4.0.6 install
  4. remove checksum value from gemfile.lock entry
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions