Merge pull request #10893 from reitermarkus/new-casks-livecheck

New casks should use `livecheck`.
This commit is contained in:
Markus Reiter 2021-03-23 01:16:37 +01:00 committed by GitHub
commit 1e55837c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,7 +288,11 @@ module Cask
def check_appcast_and_livecheck
return unless cask.appcast
add_error "Cask has a `livecheck`, the `appcast` should be removed." if cask.livecheckable?
if cask.livecheckable?
add_error "Cask has a `livecheck`, the `appcast` should be removed."
elsif new_cask?
add_error "New casks should use a `livecheck` instead of an `appcast`."
end
end
def check_latest_with_appcast_or_livecheck