mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

Formulae can execute arbitrary Ruby code when being loaded. In particular, they can print to stdout with methods like `puts`. This can break the parsing of output of commands like `brew info --json=v2`. Let's fix that by capturing the output to stdout, and then printing those messages to stderr instead (using `opoo` to try to discourage formula authors from doing this).
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.