From 5c515aa6790a3d2fcf99df5c37ab64bb641dd97f Mon Sep 17 00:00:00 2001 From: Leo Heitmann Ruiz Date: Sun, 19 May 2024 13:54:09 +0200 Subject: [PATCH] Add --force to tap instructions --- docs/Adding-Software-to-Homebrew.md | 2 +- docs/FAQ.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Adding-Software-to-Homebrew.md b/docs/Adding-Software-to-Homebrew.md index 607a956267e99..b54c020686ebd 100644 --- a/docs/Adding-Software-to-Homebrew.md +++ b/docs/Adding-Software-to-Homebrew.md @@ -14,7 +14,7 @@ If everything checks out, you're ready to get started on a new formula! ### Writing the formula -1. It's a good idea to find existing formulae in Homebrew that have similarities to the software you want to add. This will help you to understand how specific languages, build methods, etc. are typically handled. Start by tapping `homebrew/core`: first set `HOMEBREW_NO_INSTALL_FROM_API=1` in your shell environment, then run `brew tap homebrew/core` to clone the `homebrew/core` tap to the path returned by `brew --repository homebrew/core`. +1. It's a good idea to find existing formulae in Homebrew that have similarities to the software you want to add. This will help you to understand how specific languages, build methods, etc. are typically handled. Start by tapping `homebrew/core`: first set `HOMEBREW_NO_INSTALL_FROM_API=1` in your shell environment, then run `brew tap --force homebrew/core` to clone the `homebrew/core` tap to the path returned by `brew --repository homebrew/core`. 1. If you're starting from scratch, you can use the [`brew create` command](Manpage.md#create-options-url) to produce a basic version of your formula. This command accepts a number of options and you may be able to save yourself some work by using an appropriate template option like `--python`. diff --git a/docs/FAQ.md b/docs/FAQ.md index 9685963fd9933..63a9ae33230be 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -133,7 +133,7 @@ If all maintainer feedback has been addressed and all tests are passing, bump it Yes! It’s easy! If `brew tap` doesn't show `homebrew/core`, set yourself up to edit a local copy: 1. Set `HOMEBREW_NO_INSTALL_FROM_API=1` in your shell environment, -2. Run `brew tap homebrew/core` and wait for the clone to complete, then +2. Run `brew tap --force homebrew/core` and wait for the clone to complete, then 3. Run `brew edit ` to open the formula in `EDITOR`. You don’t have to submit modifications back to `homebrew/core`, just edit the formula to what you personally need and `brew install `. As a bonus, `brew update` will merge your changes with upstream so you can still keep the formula up-to-date **with** your personal modifications!