mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
api_hashable: remove HOMEBREW_CELLAR.
This breaks some API generation and isn't actually required.
This commit is contained in:
parent
dc2ed9f022
commit
1b2e0b8082
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user