From 9da18b634c0c922e4d2ef99182106f771576ff7a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 3 May 2024 08:29:10 +0100 Subject: [PATCH] formula: fix missing test resources. Revert one change from https://github.com/Homebrew/brew/pull/17165. It's unclear to me why this fixes the problem, but it does. Fixes https://github.com/Homebrew/brew/issues/17203 --- Library/Homebrew/formula.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6175f9abc9b40..1a6214b47aae8 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -553,9 +553,7 @@ def synced_with_other_formulae? # ```ruby # resource("additional_files").stage { bin.install "my/extra/tool" } # ``` - def resource(name) - active_spec.resource(name) - end + delegate resource: :active_spec # An old name for the formula. sig { returns(T.nilable(String)) }