summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-12-12 16:04:49 +0900
committerHiroshi SHIBATA <[email protected]>2023-12-14 07:48:08 +0900
commit8b0c62696203daba815fa4e6d1c08dc143b3cc04 (patch)
treed6aebd4c70556938a6be4e60cdd0c1c0d470bbd5 /lib
parent75c40802cb06d83fc2c3d0eca6d904fa41307230 (diff)
Skip warning feature with Bootsnap
Bootsnap modified full feature path to require. We can't handle it for warning correctly.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index e2a0456b18..0cd3805bd9 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -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