Detect bootsnap from all frames
This commit is contained in:
parent
8b0c626962
commit
5a0cbc9344
@ -102,8 +102,12 @@ module Gem::BUNDLED_GEMS
|
|||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
# Warning feature is not working correctly with Bootsnap
|
# Warning feature is not working correctly with Bootsnap.
|
||||||
return if caller_locations(2,1)[0]&.path.match?(/bootsnap/)
|
# caller_locations returns:
|
||||||
|
# lib/ruby/3.3.0+0/bundled_gems.rb:65:in `block (2 levels) in replace_require'
|
||||||
|
# $GEM_HOME/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'"
|
||||||
|
# ...
|
||||||
|
return if caller_locations(2).find {|c| c&.path.match?(/bootsnap/) }
|
||||||
return if WARNED[name]
|
return if WARNED[name]
|
||||||
WARNED[name] = true
|
WARNED[name] = true
|
||||||
if gem == true
|
if gem == true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user