From c32283e5be444565bda707f8cb93bad1d15296c2 Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Tue, 1 Jan 2019 15:46:57 -0800 Subject: [PATCH] diagnostic: use universal pull request message --- Library/Homebrew/diagnostic.rb | 10 ++++++++++ Library/Homebrew/extend/os/mac/diagnostic.rb | 5 +---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 55df9aca8c..a6033feb4d 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -95,6 +95,16 @@ module Homebrew ]).freeze end + def please_create_pull_requests(what = "unsupported configuration") + <<~EOS + You may encounter build failures and other breakages. + Please create pull requests instead of asking for help on + Homebrew's GitHub, Discourse, Twitter or IRC. You are + responsible for resolving any issues you experience, as + you are running this #{what}. + EOS + end + def check_for_installed_developer_tools return if DevelopmentTools.installed? diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index 0af10f9698..321e0cda18 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -60,10 +60,7 @@ module Homebrew <<~EOS You are using macOS #{MacOS.version}. #{who} do not provide support for this #{what}. - You will encounter build failures and other breakages. - Please create pull requests instead of asking for help on Homebrew's - GitHub, Discourse, Twitter or IRC. As you are running this #{what}, - you are responsible for resolving any issues you experience. + #{please_create_pull_requests(what)} EOS end