Make Pathname.prepend WriteMkpathExtension
as late as possible.
Let's avoid weirdness in other parts of Homebrew by moving this prepend to be as late as possible.
This commit is contained in:
parent
9da27e1ac2
commit
e28fe444a5
@ -183,6 +183,8 @@ class Build
|
||||
|
||||
(formula.logs/"00.options.out").write \
|
||||
"#{formula.full_name} #{formula.build.used_options.sort.join(" ")}".strip
|
||||
|
||||
Pathname.prepend WriteMkpathExtension
|
||||
formula.install
|
||||
|
||||
stdlibs = detect_stdlibs
|
||||
@ -247,8 +249,6 @@ begin
|
||||
options = Options.create(args.flags_only)
|
||||
build = Build.new(formula, options, args:)
|
||||
|
||||
Pathname.prepend WriteMkpathExtension
|
||||
|
||||
build.install
|
||||
# Any exception means the build did not complete.
|
||||
# The `case` for what to do per-exception class is further down.
|
||||
|
@ -32,8 +32,8 @@ begin
|
||||
end
|
||||
|
||||
Pathname.prepend WriteMkpathExtension
|
||||
|
||||
formula.run_post_install
|
||||
|
||||
# Handle all possible exceptions.
|
||||
rescue Exception => e # rubocop:disable Lint/RescueException
|
||||
error_pipe&.puts e.to_json
|
||||
|
@ -45,10 +45,9 @@ begin
|
||||
formula.extend(Debrew::Formula)
|
||||
end
|
||||
|
||||
Pathname.prepend WriteMkpathExtension
|
||||
|
||||
ENV.extend(Stdenv)
|
||||
ENV.setup_build_environment(formula:, testing_formula: true)
|
||||
Pathname.prepend WriteMkpathExtension
|
||||
|
||||
# tests can also return false to indicate failure
|
||||
run_test = proc { |_ = nil| raise "test returned false" if formula.run_test(keep_tmp: args.keep_tmp?) == false }
|
||||
|
Loading…
x
Reference in New Issue
Block a user