carlocab beeb7faaba
formula_installer: tweak no-bottle error message
Follow up to #10183.

This improves the error message displayed when `formula.pour_bottle?` is
false.

Before:

    ❯ brew install python@3.8
    Error: python@3.8: no bottle available!
    The bottle needs the Apple Command Line Tools to be installed.
      You can install them, if desired, with:
        xcode-select --install
    You can try to install from source with e.g.
      brew install --build-from-source python@3.8
    Please note building from source is unsupported. You will encounter build
    failures with some formulae. If you experience any issues please create pull
    requests instead of asking for help on Homebrew's GitHub, Twitter or any other
    official channels.

After:

    ❯ brew install python@3.8
    Error: python@3.8: the bottle needs the Apple Command Line Tools to be installed.
      You can install them, if desired, with:
        xcode-select --install
    You can try to install from source with e.g.
      brew install --build-from-source python@3.8
    Please note building from source is unsupported. You will encounter build
    failures with some formulae. If you experience any issues please create pull
    requests instead of asking for help on Homebrew's GitHub, Twitter or any other
    official channels.
2021-01-04 15:53:50 +00:00
..
2020-12-02 00:27:24 +00:00
2020-12-21 09:29:55 +00:00
2020-12-29 10:50:10 +00:00
2020-12-18 14:17:37 +00:00
2021-01-01 07:28:36 +00:00
2020-12-02 10:43:04 +00:00
2020-12-11 22:15:18 +01:00
2020-12-18 14:17:37 +00:00
2020-12-15 14:19:45 +00:00
2020-12-19 19:34:22 -05:00
2020-12-28 13:34:07 +00:00
2020-12-09 11:47:48 +00:00
2020-12-18 14:17:37 +00:00
2020-12-02 10:43:04 +00:00
2020-12-18 14:17:37 +00:00
2020-12-02 10:43:04 +00:00
2020-12-24 14:15:03 +01:00
2020-11-27 13:12:09 +00:00
2020-12-02 10:43:04 +00:00
2020-12-28 12:14:11 +01:00
2020-11-29 21:23:54 +01:00
2020-11-29 21:23:54 +01:00
2020-11-29 21:23:54 +01:00
2020-12-31 13:30:24 +00:00
2020-12-18 14:17:37 +00:00
2020-11-30 00:00:02 +01:00
2020-11-30 00:49:14 +01:00
2020-12-18 16:48:49 +01:00

Homebrew's Formula API

This is the 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!