Exception: BuildFlagsError Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Raised by Homebrew.install, Homebrew.reinstall and Homebrew.upgrade
if the user passes any flags/environment that would case a bottle-only
installation on a system without build tools to fail.
Instance Method Summary collapse
-
#initialize(flags, bottled: true) ⇒ BuildFlagsError
constructor
private
A new instance of BuildFlagsError.
Constructor Details
#initialize(flags, bottled: true) ⇒ BuildFlagsError
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns a new instance of BuildFlagsError.
608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'exceptions.rb', line 608 def initialize(flags, bottled: true) if flags.length > 1 flag_text = "flags" require_text = "require" else flag_text = "flag" require_text = "requires" end bottle_text = if bottled <<~EOS Alternatively, remove the #{flag_text} to attempt bottle installation. EOS end = <<~EOS The following #{flag_text}: #{flags.join(", ")} #{require_text} building tools, but none are installed. #{DevelopmentTools.installation_instructions} #{bottle_text} EOS super end |