Skip to content

Commit

Permalink
bottles_fetch: fail when formula has no bottles
Browse files Browse the repository at this point in the history
Closes #1066.
  • Loading branch information
carlocab committed May 29, 2024
1 parent dfa930c commit a0373cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tests/bottles_fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def fetch_bottles!(formula_name, args:)
formula = Formula[formula_name]
tags = formula.bottle_specification.collector.tags

odie "#{formula_name} is missing bottles! Did you mean to use `brew pr-publish`?" if tags.blank?

tags.each do |tag|
cleanup_during!(args:)
test "brew", "fetch", "--retry", "--formulae", "--bottle-tag=#{tag}", formula_name
Expand Down

0 comments on commit a0373cd

Please sign in to comment.