Project

General

Profile

Actions

Bug #20060

closed

bundled_gems.rb is not working with Bootsnap

Added by hsbt (Hiroshi SHIBATA) 6 months ago. Updated 6 months ago.

Status:
Closed
Target version:
-
[ruby-core:115710]

Description

Addressed from https://github.com/ruby/ruby/pull/9163#issuecomment-1850924893

bundled_gems.rb of 3.3.0-rc1 couldn't handle full paths by Bootsnap.

$ rails new example
(snip)
       rails  importmap:install
bin/rails aborted!
ArgumentError: comparison of String with nil failed (ArgumentError)

    msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
(snip)

It's working with DISABLE_BOOTSNAP=1. But we should resolve it with under the bootsnap.

Updated by hsbt (Hiroshi SHIBATA) 6 months ago

I'm not sure why this issue was fixed with ruby 3.3.0dev (2023-12-13T07:28:22Z master 75f4a687ed) [arm64-darwin23].

This may be affected with recent RubyGems or Bundler changes.

Actions #3

Updated by matsuda (Akira Matsuda) 6 months ago

  • Status changed from Assigned to Closed

Applied in changeset git|75c40802cb06d83fc2c3d0eca6d904fa41307230.


[Bug #20060] Properly return matched gem name in case of EXACT

this follows up 4e6861d3376eb7857d2b0a947c97b6fec8e5bf37

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0