api_hashable: remove HOMEBREW_CELLAR.

This breaks some API generation and isn't actually required.
This commit is contained in:
Mike McQuaid 2023-07-18 11:58:40 +01:00
parent dc2ed9f022
commit 1b2e0b8082
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -12,7 +12,6 @@ module APIHashable
@old_home = Dir.home
Object.send(:remove_const, :HOMEBREW_PREFIX)
Object.const_set(:HOMEBREW_PREFIX, Pathname.new(HOMEBREW_PREFIX_PLACEHOLDER))
Object.const_set(:HOMEBREW_CELLAR, Pathname.new(HOMEBREW_CELLAR_PLACEHOLDER))
ENV["HOME"] = HOMEBREW_HOME_PLACEHOLDER
@generating_hash = true
@ -24,8 +23,6 @@ module APIHashable
# Revert monkeypatches for API generation
Object.send(:remove_const, :HOMEBREW_PREFIX)
Object.const_set(:HOMEBREW_PREFIX, @old_homebrew_prefix)
Object.send(:remove_const, :HOMEBREW_CELLAR)
Object.const_set(:HOMEBREW_CELLAR, @old_homebrew_cellar)
ENV["HOME"] = @old_home
@generating_hash = false