Merge pull request #8326 from reitermarkus/deprecate-cask-eid

Add `cask-eid` to list of deprecated taps.
This commit is contained in:
Mike McQuaid 2020-08-13 08:52:14 +01:00 committed by GitHub
commit f9bbf4495c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ OFFICIAL_CMD_TAPS = {
DEPRECATED_OFFICIAL_TAPS = %w[ DEPRECATED_OFFICIAL_TAPS = %w[
apache apache
binary binary
cask-eid
completions completions
devel-only devel-only
dupes dupes

View File

@ -234,9 +234,10 @@ class Tap
require "descriptions" require "descriptions"
if official? && DEPRECATED_OFFICIAL_TAPS.include?(repo) if official? && DEPRECATED_OFFICIAL_TAPS.include?(repo)
odie "#{name} was deprecated. This tap is now empty as all its formulae were migrated." odie "#{name} was deprecated. This tap is now empty and all its contents were either deleted or migrated."
elsif user == "caskroom" elsif user == "caskroom"
odie "#{name} was moved. Tap homebrew/cask-#{repo} instead." new_repo = repo == "cask" ? "cask" : "cask-#{repo}"
odie "#{name} was moved. Tap homebrew/#{new_repo} instead."
end end
requested_remote = clone_target || default_remote requested_remote = clone_target || default_remote