From 9a90c0fdfaf39bc9e8bfd11775a38b0e44b80edf Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Tue, 7 Nov 2023 20:35:51 -0800 Subject: [PATCH] cmd/desc: fix handling of `--eval-all` with formulae This was caused by some refactoring of `Formula.all` a few months ago. In this case, `eval-all` was not propagated to the Formula.all command which caused a few different description related commands not to work. Broken commands: - `brew search --desc --eval-all TERM` - `brew desc --search --eval-all TERM` - `brew desc --descriptions --eval-all TERM` --- Library/Homebrew/description_cache_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/description_cache_store.rb b/Library/Homebrew/description_cache_store.rb index 18e8a20961..bcc6ddbc98 100644 --- a/Library/Homebrew/description_cache_store.rb +++ b/Library/Homebrew/description_cache_store.rb @@ -34,7 +34,7 @@ class DescriptionCacheStore < CacheStore return unless eval_all return unless database.empty? - Formula.all.each { |f| update!(f.full_name, f.desc) } + Formula.all(eval_all: eval_all).each { |f| update!(f.full_name, f.desc) } end # Use an update report to update the {DescriptionCacheStore}.