From 5d729dd310abc97b846e6e99bf7b9626864421fe Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 15 Feb 2019 17:39:20 +0000 Subject: [PATCH] formula: make JSON caveats output use consistent prefix. This will avoid this changing depending on the generation location. --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4cf7b26eae..01b6e6b837 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1631,7 +1631,7 @@ class Formula .uniq, "requirements" => [], "conflicts_with" => conflicts.map(&:name), - "caveats" => caveats, + "caveats" => caveats&.gsub(HOMEBREW_PREFIX, "$(brew --prefix)"), "installed" => [], "linked_keg" => linked_version&.to_s, "pinned" => pinned?,