弃用自制水龙头以过渡到另一个水龙头的最佳方法?
Best way to deprecate a homebrew tap to transition to another tap?
这是我的情况:
我创建了一个自制程序 tap
来托管一些工具,我们称它为 me/poor-name
.
现在,由于各种原因,我想过渡到一个更好命名的水龙头 me/tools
。
当我的用户从 me/poor-name
安装工具时,有没有办法在一段时间内打印某种弃用警告,以便他们逐渐使用 me/tools
作为水龙头?
或者是否有更好的方法来处理转换?
Homebrew 不支持重命名水龙头,但是 it does allow migrating formulae from one tap to another。
- Create a pull request to the new tap adding the formula file as-is from the original tap. Fix any test failures that may occur due to the stricter requirements for new formulae than existing formula (e.g.
brew audit --strict
must pass for that formula).
- Create a pull request to the original tap deleting the formula file and add it to
tap_migrations.json
with a commit message like gv: migrate to homebrew/core
.
- Put a link for each pull request in the other pull request so the maintainers can merge them both at once.
例如,这里是 brewsci/science
的 tap_migrations.json
文件:https://github.com/brewsci/homebrew-science/blob/master/tap_migrations.json
此外,此功能应该与木桶相同。 (只是没有记录。)
这是我的情况:
我创建了一个自制程序 tap
来托管一些工具,我们称它为 me/poor-name
.
现在,由于各种原因,我想过渡到一个更好命名的水龙头 me/tools
。
当我的用户从 me/poor-name
安装工具时,有没有办法在一段时间内打印某种弃用警告,以便他们逐渐使用 me/tools
作为水龙头?
或者是否有更好的方法来处理转换?
Homebrew 不支持重命名水龙头,但是 it does allow migrating formulae from one tap to another。
- Create a pull request to the new tap adding the formula file as-is from the original tap. Fix any test failures that may occur due to the stricter requirements for new formulae than existing formula (e.g.
brew audit --strict
must pass for that formula).- Create a pull request to the original tap deleting the formula file and add it to
tap_migrations.json
with a commit message likegv: migrate to homebrew/core
.- Put a link for each pull request in the other pull request so the maintainers can merge them both at once.
例如,这里是 brewsci/science
的 tap_migrations.json
文件:https://github.com/brewsci/homebrew-science/blob/master/tap_migrations.json
此外,此功能应该与木桶相同。 (只是没有记录。)