docs/Rename-A-Formula.md
A rename must preserve upgrades from the old package name and avoid leaving chained or conflicting rename records. Complete the file change and rename metadata in the same pull request.
formula_renames.json using canonical names without a tap prefix.Example:
{
"ack": "newack"
}
Use a commit summary such as newack: renamed from ack.
Do not leave a formula under both names unless they are intentionally separate packages that can be maintained independently.
cask block.cask_renames.json.Example:
{
"old-token": "new-token"
}
Use a commit summary such as new-token: renamed from old-token.
Homebrew uses the rename mapping during updates and brew migrate, so the target must exist in the same tap.