build: fix HOMEBREW_FORMULA_PREFIX for head
so that it includes the commit.
This commit is contained in:
parent
914378cf2e
commit
732bf2212d
@ -112,6 +112,10 @@ class Build
|
|||||||
formula.extend(Debrew::Formula) if ARGV.debug?
|
formula.extend(Debrew::Formula) if ARGV.debug?
|
||||||
|
|
||||||
formula.brew do |_formula, staging|
|
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?
|
staging.retain! if ARGV.keep_tmp?
|
||||||
formula.patch
|
formula.patch
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user