mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
`inject_dump_stats!` captured methods via `instance_method` (which returns the prepended module's version) then redefined them on the class with `bind_call`. When the captured prepended method called `super`, it resolved to the newly defined class method, creating an infinite recursion. Use an anonymous wrapper module with `super` instead of `bind_call` to correctly delegate through the method resolution order without cycles. Fixes #21587
Library
This directory contains all the code run by the official brew command in Homebrew and all formulae (package descriptions) in taps (repositories containing formulae) in Taps subdirectories.