aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
AgeCommit message (Collapse)Author
2014-07-12Linuxbrew: Move ISSUES_URL to os from globalShaun Jackman
Closes Homebrew/linuxbrew#103 Closes #30830. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-11exceptions: fix typoMatt Hauck
Closes #30821. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-06Drop pointless string splitJack Nagel
2014-05-28Remove unused attributeJack Nagel
2014-05-28Remove unused method and associated test fixturesJack Nagel
2014-05-08exceptions: fix tap issue URL.Mike McQuaid
Closes #29043.
2014-04-30--config -> configAdam Vandenberg
2014-04-23Use gcc instead of apple-gcc42 when needed.Mike McQuaid
2014-04-06show formula version in failed build outputAdam Vandenberg
2014-04-06Remove now unnecessary realpath callsJack Nagel
2014-04-05Automatically reinstall up-to-date dependencies that are missing optionsJack Nagel
Closes #21223.
2014-03-17Don't check issues on Ruby 1.8.6Misty De Meo
The system certs are too old to be able to read from Github, so don't try to use the Github API on 1.8.6 either.
2014-02-28Add custom exception for untapped formulaeJack Nagel
2014-02-27Pass expansion-time build options to install_dependencyJack Nagel
2014-02-18Tweak DownloadError message to include wrapped exceptionJack Nagel
2014-02-18Add DownloadError to catch a broader range of resource download errors.Drew Rodman
Adding a broader exception class allows for errors raised in Resource.fetch to be caught in upgrade and prevent the process from being killed when a download fails. This should resolve issue 18364. Fixes #18364. Closes #26618. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-18Inline static exception text to remove a rescueJack Nagel
2014-02-08Don't let issue search kill install processJack Nagel
2014-02-02C++ stdlibs: issue warning, don't fail the buildMisty De Meo
2014-01-20utils: improve issue searching.Mike McQuaid
* issues_matching now returns an array * prints issues titles and URLs * find_pull_requests shows closed PRs if no matching PRs are open Closes #26032.
2014-01-03exceptions: remove unused AlreadyTappedError.Mike McQuaid
2013-12-14Update string references to mxcl/homebrew.Mike McQuaid
2013-12-03Make CompilerSelectionError an InstallationErrorJack Nagel
Fixes #19962.
2013-11-11exceptions: improve tap error message.Mike McQuaid
Point users to the tap's issue tracker URL.
2013-10-31Use HOMEBREW_LOGS more consistently.Mike McQuaid
2013-10-30exceptions: direct to correct tap on failure.Mike McQuaid
Closes #23757.
2013-10-27fix build log outputStefan
Closes #23669. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-22Different regex for user/tap/formula and user/tap.Mike McQuaid
Closes #23430.
2013-10-21tap: use dedicated exception for already tapped.Mike McQuaid
2013-10-21global: unify tap regex.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-09-27Adjust CompilerSelectionError messageMisty De Meo
2013-09-11Implement ResourcesAdam Vandenberg
Closes #20212.
2013-09-01Check dependencies for a compatible C++ stdlibMisty De Meo
There are now a few possible C++ standard libraries a given build could be using, with subtle incompatibilities and possibility of breakage when mixed. This makes sure that the dependency chain was compiled in a compatible manner. Fortunately all of the Apple compilers use the same libstdc++, and we don't yet support building with libc++, so this will primarily only nag users trying to use GNU gcc who already have software installed with Apple compilers. Future TODOs: * Add general support for building with libc++ (compatibility checking already handled here) * Possibly track formulae which actually build C++ bindings, so that users aren't bothered by spurious nagging re: interpreted languages, pure-C software, etc.
2013-08-08exception styleAdam Vandenberg
2013-06-24Use 'path or URL' as tap for non-tap, non-core formulaeAdam Vandenberg
2013-06-24Show tap/path for non-core formulae on build failureAdam Vandenberg
Closes #16373. Closes #20725.
2013-06-09Separate formula conflicts from requirementsJack Nagel
Closes #20357.
2013-06-08Consolidate sudo checks.Adam Vandenberg
Closes #20318.
2013-06-02InstallationError: don't search issues on < 1.8.6Misty De Meo
open-uri on Ruby pre-1.8.6 simply will not open https URLs at all, making it impossible to check the Github API using the same method as Homebrew. This may only be disabled temporarily until the issue search is rewritten, for example to use the curl helper.
2013-05-20CompilerSelector: raise when no compatible compilerMisty De Meo
This replaces the old behaviour of falling back to the original compiler with no messaging. Fixes #19170. Fixes mistydemeo/tigerbrew#45.
2013-04-27Allow `brew versions` to work with underspecified formulaeJack Nagel
2013-04-13Improved formula attribute validationJack Nagel
The initializer for Formula does a number of validations, but it does them in a weird order, and some attributes aren't validated under certain circumstances. This became even more of a mess when most software package attributes were moved into the SoftwareSpec class. This commit removes the last vestiges of storing these attributes as instance variables. In particular, it eliminates #set_instance_variable and #validate_variable, replacing them with methods that operate on SoftwareSpec instances, and generate more useful errors. Doing these validations unconditionally in the initializer means we bail out much earlier if the formula has invalid attributes or is not fully specified, and no longer need to validate in #prefix. Technically we don't need to validate in #brew either, but we continue to do so anyway as a safety measure, and because we cannot enforce calls to super in subclasses.
2013-04-03Don't error out when a package is already installedJack Nagel
Fixes #17010.
2013-02-18Don't use deprecated form of attrJack Nagel
The form "attr :name, true" is deprecated and causes Ruby to emit a warning in verbose mode. Using attr_{reader,writer,accessor} is more clear anyway, so do so.
2013-02-18Silence "`*` interpreted as argument prefix" warningsJack Nagel
2013-01-27Extract unsatisfied dependency logic from installerJack Nagel
2013-01-26FormulaInstaller: implement installation locksJack Nagel
FormulaInstaller now attempts to take a lock on a "foo.brewing" file for the formula and all of its dependencies before attempting installation. The lock is an advisory lock implemented using flock(), and as such it only locks out other processes that attempt to take the lock. It also means that it is never necessary to manually remove the lock file, because the lock is not enforced by I/O. The uninstall, link, and unlink commands all learn to respect this lock as well, so that the installation cannot be corrupted by a concurrent Homebrew process, and keg operations cannot occur simultaneously.
2012-10-31Only show the troubleshooting linkMax Howell
This has to be a last resort right? If all we show is that link (plus preceding un-deletable output) and they don't click it then maybe we should just close the ticket and hope they'll use MacPorts instead.
2012-10-03Fix use of ISSUES_URL.Mike McQuaid
2012-09-27When builds fail verbosely, be verboseMax Howell