
The current approach of suppressing all output regardless of what the error is makes it very hard to debug any issues and misread but valid Mach-O files will be silently interpreted as non-Mach-O files instead. Prefer to fail if we are a Homebrew developer or running on the bot (`HOMEBREW_DEVELOPER=1`), so that problems will be noticed and fixed before the silent failure leads to hard-to-diagnose user problems. Closes Homebrew/homebrew#48817. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Homebrew's Formula API
This is the (partially) documented public API for Homebrew.
The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.
You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.
Good luck!