Merge pull request #14278 from nandahkrishna/fix-constants-livecheck

Fix access to `livecheck` constants in formulae
This commit is contained in:
Mike McQuaid 2022-12-21 11:00:15 +00:00 committed by GitHub
commit f679990d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ class Formula
include Utils::Shell include Utils::Shell
include Context include Context
include OnSystem::MacOSAndLinux include OnSystem::MacOSAndLinux
include Homebrew::Livecheck::Constants
extend Forwardable extend Forwardable
extend Cachable extend Cachable
extend Predicable extend Predicable
@ -3278,7 +3279,6 @@ class Formula
def livecheck(&block) def livecheck(&block)
return @livecheck unless block return @livecheck unless block
include Homebrew::Livecheck::Constants
@livecheckable = true @livecheckable = true
@livecheck.instance_eval(&block) @livecheck.instance_eval(&block)
end end