10000 `bundle install` fails with RubyGems 3.4.x · Issue #19 · github-developer/creating-ci-tests-with-the-checks-api · GitHub
[go: up one dir, main page]

Skip to content
bundle install fails with RubyGems 3.4.x #19
Open
@Fuzzwah

Description

@Fuzzwah

When attempting to run the bundle install command I received the error:

lib/bundler/shared_helpers.rb:272:in `search_up': undefined method `untaint'

This is because since Ruby 3.2.0 some deprecated methods (taint/trust/untaint/untrust) have been removed,ref: https://bugs.ruby-lang.org/issues/16131 . Bundler version 1.17.3 has that method in shared_helpers.rb.

Even though I'd freshly installed the latest version of bundler Because the Gemfile.lock specifies:

BUNDLED WITH
   1.17.1

When I run bundle install it downgrades to 1.17.1:

Bundler 2.4.5 is running, but your lockfile was generated with 1.17.1. Installing Bundler 1.17.1 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 1.17.1

The fix is simple, alter the Gemfile.lock to declare it was bundled with 2.4.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0