2.0 KiB
2.0 KiB
Migrate a Formula to Multiple Versions
Migrating an existing formula to multiple versions
In separate pull-requests:
- Rename the formula from e.g.
boost.rbto e.g.boost@1.61.rband, in the same pull request, add an alias namedboost. This should not require anyrevisioning or significant formula modification beyond the formula name. - Add the new version formula e.g.
boost@1.62.rb - Tap authors should have their
depends_on "boost"updated todepends_on "boost@1.61"ordepends_on "boost@1.62". - Modify the
boostalias to point toboost@1.62.rb. Any formulae that need the old version ofboostshould have theirdepends_on "boost"to be updated todepends_on "boost@1.61". - When
boost@1.62has two major/minor versions newer than it (e.g.boost@1.64) then consider removingboost@1.62.rband anything that depends on it.
Upgrading a multiple version formula
In separate pull-requests:
- Add the new version formula e.g.
boost@1.63.rb - Modify the
boostalias to point toboost@1.63.rb. Any formulae that need the old version ofboostshould have theirdepends_on "boost"to be updated todepends_on "boost@1.62". - When
boost@1.63has two major/minor versions newer than it (e.g.boost@1.65) then consider removingboost@1.63.rband anything that depends on it.
Importing a homebrew/versions formula into homebrew/core
In separate pull-requests:
- Migrate the formula from Homebrew/homebrew-versions to Homebrew/homebrew-core with the same, old name e.g.
boost160.rb. - Rename the formula from e.g.
boost160.rbto e.g.boost@1.60.rb. This should not require anyrevisioning or significant formula modification beyond the formula name. - Tap authors should have their
depends_on "boost160"updated todepends_on "boost@1.60". - When
boost@1.60has two major/minor versions newer than it (e.g.boost@1.62) then consider removingboost@1.60.rband anything that depends on it.