Skip to content

Commit

Permalink
Merge pull request #15948 from bayandin/shard-audit
Browse files Browse the repository at this point in the history
audit_file: check formula path
  • Loading branch information
bayandin authored Sep 4, 2023
2 parents 5de703e + b7cb835 commit 27902f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Library/Homebrew/formula_auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ def audit_file
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
Expand Down

0 comments on commit 27902f0

Please sign in to comment.