Fix access to livecheck constants in formulae

This commit is contained in:
Nanda H Krishna 2022-12-21 05:27:23 -05:00
parent 740f9ddcc6
commit 768ebe5750
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA

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