From 8b0c62696203daba815fa4e6d1c08dc143b3cc04 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 12 Dec 2023 16:04:49 +0900 Subject: [PATCH] Skip warning feature with Bootsnap Bootsnap modified full feature path to require. We can't handle it for warning correctly. --- lib/bundled_gems.rb | 2 ++ 1 file changed, 2 insertions(+) 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