Carlo Cabrera 6c3361e80f
install: check for --only-dependencies flag earlier
Currently, doing `brew install --only-dependencies` with an unlinked
formula does nothing and returns a message saying the formula is already
installed but just not linked.

I think that we should just install the dependencies as requested here
instead of complaining that the formula isn't linked.

Before:

    ❯ brew unlink adplug
    Unlinking /usr/local/Cellar/adplug/2.3.3... 8 symlinks removed.
    ❯ brew install --only-dependencies adplug
    Warning: adplug 2.3.3 is already installed, it's just not linked.
    To link this version, run:
      brew link adplug

After:

    ❯ brew install --only-dependencies adplug
    ==> Fetching dependencies for adplug: libbinio
    ==> Fetching libbinio
    ==> Downloading https://ghcr.io/v2/homebrew/core/libbinio/manifests/1.5
    [snip]

See Homebrew/homebrew-core#127133 for additional context.
2023-04-02 01:39:23 +08:00
..
2023-02-08 10:03:45 +01:00
2023-02-22 22:50:24 +00:00
2023-03-30 03:29:06 +02:00
2023-03-30 03:29:06 +02:00
2023-03-30 21:08:40 -04:00
2023-02-19 00:13:29 +00:00
2023-03-30 17:22:02 -07:00
2023-03-30 17:22:02 -07:00
2023-03-30 17:22:02 -07:00
2023-03-07 23:34:57 +08:00
2023-03-30 03:29:06 +02:00
2023-03-21 17:37:48 -07:00
2023-03-14 14:49:34 -07:00
2023-03-14 14:49:34 -07:00
2023-03-10 17:53:15 +00:00
2023-03-07 19:15:05 -08:00
2023-03-18 13:55:19 -07:00
2023-03-10 17:53:15 +00:00
2023-03-02 11:49:09 -08:00
2023-03-13 09:08:56 -07:00
2023-03-27 09:28:27 -07:00
2023-02-28 13:05:43 -08:00
2023-03-14 11:09:57 +01:00
2023-03-07 09:08:54 -08:00
2023-03-15 14:29:15 -07:00
2023-03-14 14:49:34 -07:00
2023-03-03 12:44:23 -08:00
2023-03-26 08:57:39 -07:00
2023-03-27 20:04:57 -07:00
2023-03-27 09:39:18 -07:00
2023-03-25 08:50:06 -07:00
2023-03-31 13:32:38 +01:00
2023-03-22 19:43:49 -07:00
2023-03-30 17:22:02 -07:00
2023-03-21 21:42:51 -07:00
2023-03-17 20:15:42 +08:00
2023-03-11 17:27:53 -08:00
2023-03-30 17:22:02 -07:00
2023-03-21 21:42:51 -07:00
2023-03-21 21:42:51 -07:00
2023-03-21 21:42:51 -07:00
2023-03-15 14:29:15 -07:00
2023-03-15 14:29:15 -07:00
2023-03-15 14:29:15 -07:00
2023-03-03 19:12:33 -08:00
2023-03-26 10:37:20 -07:00
2023-03-25 08:50:06 -07:00
2023-03-27 20:04:57 -07:00
2023-03-22 19:43:49 -07:00
2023-03-15 18:21:41 -07:00
2023-03-19 17:37:58 -07:00
2023-03-14 23:01:09 -07:00
2023-03-09 13:42:06 -08:00
2023-03-03 12:44:23 -08:00
2023-03-09 13:42:06 -08:00
2023-03-21 17:37:48 -07:00
2023-03-21 17:37:48 -07:00
2023-02-15 14:24:58 +00:00

Homebrew Ruby API

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