Skip warning feature with Bootsnap

Bootsnap modified full feature path to require. We can't handle it for
  warning correctly.
This commit is contained in:
Hiroshi SHIBATA 2023-12-12 16:04:49 +09:00
parent 75c40802cb
commit 8b0c626962

View File

@ -102,6 +102,8 @@ module Gem::BUNDLED_GEMS
else
return
end
# Warning feature is not working correctly with Bootsnap
return if caller_locations(2,1)[0]&.path.match?(/bootsnap/)
return if WARNED[name]
WARNED[name] = true
if gem == true