mirror of
https://github.com/Homebrew/brew.git
synced 2024-11-25 16:33:34 +08:00
Add --force to tap instructions
This commit is contained in:
parent
e9d989bdea
commit
5c515aa679
@ -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`.
|
||||
|
||||
|
@ -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 <formula>` 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 <formula>`. 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!
|
||||
|
Loading…
Reference in New Issue
Block a user