Skip to content
Snippets Groups Projects
Commit 09e0bcf1 authored by Xu Cheng's avatar Xu Cheng
Browse files

update: loading core files at the beginning

This should help to prevent similar situation of Homebrew/homebrew#42553 happening in the
future.
parent 7c72b0c6
No related branches found
No related tags found
No related merge requests found
require "cmd/tap"
require "formula_versions"
module Homebrew
def update
......@@ -201,7 +202,6 @@ class Updater
when "M"
file = repository.join(src)
begin
require "formula_versions"
formula = Formulary.factory(file)
new_version = formula.pkg_version
old_version = FormulaVersions.new(formula).formula_at_revision(@initial_revision, &:pkg_version)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment