Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle install fails with RubyGems 3.4.x #19

Open
Fuzzwah opened this issue Jan 25, 2023 · 0 comments · May be fixed by #20
Open

bundle install fails with RubyGems 3.4.x #19

Fuzzwah opened this issue Jan 25, 2023 · 0 comments · May be fixed by #20

Comments

@Fuzzwah
Copy link

Fuzzwah commented Jan 25, 2023

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.

Fuzzwah added a commit to Fuzzwah/creating-ci-tests-with-the-checks-api that referenced this issue Jan 25, 2023
@Fuzzwah Fuzzwah linked a pull request Jan 25, 2023 that will close this issue
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 a pull request may close this issue.

1 participant