Skip to content

Commit

Permalink
formulae: avoid fetching just-built dependencies
Browse files Browse the repository at this point in the history
Trying to fetch a just-built dependency will result in a `brew fetch`
failure because its bottle will not have been uploaded yet.

See Homebrew/homebrew-core#133144.
  • Loading branch information
carlocab committed Jun 12, 2023
1 parent eecc685 commit 37a6b97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/tests/formulae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,9 @@ def setup_formulae_deps_instances(formula, formula_name, args:)
end

info_header "Determining dependencies..."
installed = Utils.safe_popen_read("brew", "list", "--formula").split("\n")
installed = Utils.safe_popen_read("brew", "list", "--formula", "--full-name").split("\n")
dependencies =
Utils.safe_popen_read("brew", "deps", "--include-build",
"--include-test", formula_name)
Utils.safe_popen_read("brew", "deps", "--include-build", "--include-test", "--full-name", formula_name)
.split("\n")
installed_dependencies = installed & dependencies
installed_dependencies.each do |name|
Expand Down

0 comments on commit 37a6b97

Please sign in to comment.