Skip to content

Commit

Permalink
Merge pull request #16310 from EricFromCanada/dependency-warn-false
Browse files Browse the repository at this point in the history
dependency: disable renamed formula warning
  • Loading branch information
MikeMcQuaid authored Dec 11, 2023
2 parents 5ee6e96 + 77c23df commit 4c20298
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def hash
end

def to_formula
formula = Formulary.factory(name)
formula = Formulary.factory(name, warn: false)
formula.build = BuildOptions.new(options, formula.options)
formula
end
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/utils/autoremove_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
include_context "with formulae for dependency testing"

before do
allow(Formulary).to receive(:factory).with("three").and_return(formula_is_build_dep)
allow(Formulary).to receive(:factory).with("three", { warn: false }).and_return(formula_is_build_dep)
end

context "when formulae are bottles" do
Expand Down

0 comments on commit 4c20298

Please sign in to comment.