Skip to content
Snippets Groups Projects
Commit 1ceb420b authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #2480 from MikeMcQuaid/no-tap-deprecate-taps

tap: warn on tapping deprecated, official taps.
parents 671de2ac e04cb899
No related branches found
No related tags found
No related merge requests found
......@@ -15,3 +15,19 @@ OFFICIAL_CMD_TAPS = {
"homebrew/test-bot" => ["test-bot"],
"homebrew/services" => ["services"],
}.freeze
DEPRECATED_OFFICIAL_TAPS = %w[
binary
completions
devel-only
dupes
emacs
fuse
games
gui
head-only
python
tex
versions
x11
].freeze
......@@ -201,6 +201,10 @@ class Tap
quiet = options.fetch(:quiet, false)
requested_remote = options[:clone_target] || default_remote
if official? && DEPRECATED_OFFICIAL_TAPS.include?(repo)
opoo "#{name} was deprecated. This tap is now empty as all its formulae were migrated."
end
if installed?
raise TapAlreadyTappedError, name unless full_clone
raise TapAlreadyUnshallowError, name unless shallow?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment