Merge pull request #15948 from bayandin/shard-audit

audit_file: check formula path
This commit is contained in:
Alexander Bayandin 2023-09-04 19:39:55 +01:00 committed by GitHub
commit 27902f0284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,14 @@ module Homebrew
EOS
end
end
return if !formula.core_formula? || formula.path == formula.tap.new_formula_path(formula.name)
problem <<~EOS
Formula is in wrong path:
Expected: #{formula.tap.new_formula_path(formula.name)}
Actual: #{formula.path}
EOS
end
def self.aliases