Skip to content

Commit

Permalink
Skip warning feature with Bootsnap
Browse files Browse the repository at this point in the history
  Bootsnap modified full feature path to require. We can't handle it for
  warning correctly.
  • Loading branch information
hsbt committed Dec 12, 2023
1 parent f64485a commit 3c07c87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bundled_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def self.warning?(name, specs: nil)
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
Expand Down

0 comments on commit 3c07c87

Please sign in to comment.