Merge pull request #3129 from ilovezfs/fix-formula-prefix-envvar-for-head

build: fix HOMEBREW_FORMULA_PREFIX for head
This commit is contained in:
ilovezfs 2017-09-10 03:23:01 -07:00 committed by GitHub
commit e108cf8cf5

View File

@ -112,6 +112,10 @@ class Build
formula.extend(Debrew::Formula) if ARGV.debug?
formula.brew do |_formula, staging|
# For head builds, HOMEBREW_FORMULA_PREFIX should include the commit,
# which is not known until after the formula has been staged.
ENV["HOMEBREW_FORMULA_PREFIX"] = formula.prefix
staging.retain! if ARGV.keep_tmp?
formula.patch