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