aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2017-01-09Deprecate brew (un)linkapps.Mike McQuaid
Unfortunately `brew linkapps` cannot behave nicely with e.g. Spotlight using either aliases or symlinks and Homebrew formulae do not build "proper" `.app` bundles that can be relocated. Instead, please consider using `brew cask` and migrate formulae using `.app`s to casks.
2017-01-07Revert "uses: properly handle untapped formulae in recursive dependency ↵Mike McQuaid
expansion"
2017-01-07Merge pull request #1784 from alyssais/uses_tap_exceptionMike McQuaid
uses: properly handle untapped formulae in recursive dependency expansion
2017-01-05uses: properly handle recursive deps exceptionsAlyssa Ross
Fixes #1776. If any known formula had a dependency on an untapped tap, Formula#recursive_dependencies would throw an exception, which would be caught by the outer exception handler, causing the rest of the dependencies for that formula to be skipped and incomplete output to be generated. To fix this, I added a check to avoid analysing the dependencies of formulae from uninstalled taps. Additionally, I removed the aforementioned outer exception handler added in 5fdb89aed90f03413cdb21af430411c4a722876e, because the only other place that should be capable of throwing such an exception is the statement that was surrounded by another wider exception handler in Homebrew/legacy-homebrew#40682.
2017-01-04Use docs.brew.sh links.Mike McQuaid
2017-01-03Merge pull request #1677 from MikeMcQuaid/formula-prefix-optMike McQuaid
formula: make prefix usually return opt_prefix.
2017-01-02Merge pull request #1766 from MikeMcQuaid/update-report-incoming-renamesMike McQuaid
update-report: handle homebrew/versions imports.
2017-01-02update-report: handle homebrew/versions imports.Mike McQuaid
Imports from homebrew/versions are migrated from that tap and then renamed immediately when they hit homebrew/core. This did not trigger our previous rename detection so address these to improve the output and handle migration correctly.
2017-01-02bottles: --force-bottle feigns or_later.Mike McQuaid
When reproducing issues with software that hasn’t been bottled yet on your version of macOS it can sometimes be helpful to use `or_later` bottle functionality i.e. just use the bottle for the latest version of macOS available. This maps well to the existing `--force-bottle` argument so it will now act as if the latest bottle has a `or_later` ending.
2016-12-31formula: make prefix usually return opt_prefix.Mike McQuaid
Return `opt_prefix` if it exists and `prefix` is not called from within the same formula's `install` or `post_install` methods. Otherwise, fall back to the existing functionality. This avoids the need to use `opt_prefix` etc. everywhere and generally means we don't expose an implementation detail (i.e. the full Cellar path) to dependents that have a habit of hard-coding it.
2016-12-31Revert "uninstall: remove nil requireds/dependents"Alyssa Ross
This reverts commit d7e72899e6f24dca5e02a734d5a4e64e39fc680e.
2016-12-30uninstall: don't comma-seperate kegs in exampleAlyssa Ross
The example command given in the dependency errors/warnings previously comma-seperated the kegs, which was incorrect syntax. This fixes that.
2016-12-30uninstall: better example in dependency warningAlyssa Ross
Previously, this only included a subset of all the kegs the user was trying to uninstall. With this change, all named formulae/kegs will be included in the example command.
2016-12-29tap_migrations: support renaming to/from casks.Mike McQuaid
Allow `tap_migrations` entries to have a `user/repo/formula` or `user/repo/cask` format for migration of formulae to/from casks.
2016-12-28Merge pull request #1706 from apjanke/deps-all-full-nameAndrew Janke
brew deps: support --full-name in --installed, --all, and --tree modes
2016-12-27brew deps: support --full-name in --installed, --all, and --tree modesAndrew Janke
2016-12-20Merge pull request #1684 from MikeMcQuaid/update-reset-commandMike McQuaid
update-reset: add new command.
2016-12-20Merge pull request #1680 from MikeMcQuaid/post-install-sandbox-prefixMike McQuaid
postinstall: don't allow writes to prefix itself.
2016-12-18update-reset: add new command.Mike McQuaid
Add new `brew update-reset` command to provide a helpful troubleshooting fallback to fetch and reset all repositories. This could have lived in `brew update` but it makes sense to avoid the complexity of sharing logic between these scripts and keeping this one simpler.
2016-12-13prune: don't remove top-level directories.Mike McQuaid
Even if they're empty we want to keep these top-level directories around as the installer has nicely created them with the correct permissions and this avoids potentially having to use `sudo` to recreate them.
2016-12-13postinstall: don't allow writes to prefix itself.Mike McQuaid
Only the top-level directories inside it. We don't want formulae writing random junk in e.g. `/usr/local` even in `postinstall`.
2016-12-11Merge pull request #1343 from vladshablinsky/explicit-specsUladzislau Shablinski
Allow to install any spec
2016-12-10reinstall/upgrade/install: always output options.Mike McQuaid
This is both easier for debugging and to communicate with users what is being done.
2016-12-03cmd/install: allow to install any specUladzislau Shablinski
* installing HEAD keg_only should be possible only if: 1. - Old version installed differs from new one and optlinked - `--force` flag is passed - HEAD is seriously outdated or outdated with `--fetch-HEAD` or 2. - Old version installed differs from new one and not optlinked or 3. - This formula is not installed * installing keg_only should be possible only if: 1. - Old version installed differs from new one and optlinked - `--force` flag is passed or 2. - Old version installed differs from new one and not optlinked or 3. - This formula is not installed * installing HEAD should be possible only if: 1. - Old HEAD is seriously outdated or outdated with `--fetch-HEAD` or 2. - HEAD is not installed * installing stable or devel should be possible only if: - Old version installed differs from new one
2016-12-01update.sh: Use full path to pkillBaptiste Fontaine
Fixes #1600.
2016-11-26update-report: allow skipping analytics message.Mike McQuaid
This is used by the install script so it can simplify it's logic and make the analytics messaging more prominent.
2016-11-26update-report: further tweak analytics output.Mike McQuaid
There were some bugs with the use of `HOMEBREW_NO_ANALYTICS_THIS_RUN` and some output glitches I missed with the previous PR (#1575).
2016-11-26update-report: further improve analytics messagingMike McQuaid
- Don't output the analytics message and mark it as read if `HOMEBREW_NO_ANALYTICS_THIS_RUN` is set. This mostly simplifies the installer code where we can display the message ourselves there rather than having `brew update` print it out sometimes and not others (i.e. when there's no system Git installed). - Use the shell's audible bell to nudge people to actually read this message (and give them less excuse to complain when they don't). - Add an extra newline and bold all the analytics messaging so it's more visible in the output.
2016-11-20Replace Utils::JSON with corelib JSON calls.William Woodruff
2016-11-18uninstall: ignore deprecations when uninstalling.Mike McQuaid
Handle `MethodDeprecatedError` because we want people to be able to uninstall regardless of the content of their formula.
2016-11-17Merge pull request #1520 from vladshablinsky/list_follow_aliasesMike McQuaid
cmd/list: follow aliases
2016-11-16cmd/list: follow aliasesUladzislau Shablinski
Closes #1514
2016-11-15uninstall: remove nil requireds/dependentsMike McQuaid
These shouldn’t get here in the first place so this is a bit of a hack pending a better fix.
2016-11-15Merge pull request #1498 from alyssais/uninstall_developer_warningMike McQuaid
Warn developers when uninstalling a dependency
2016-11-14uninstall: style fixesAlyssa Ross
Works around Rubycop not liking method names that start with `is_` by changing convention from singular to plural. I think it's better that way anyway.
2016-11-14uninstall: clean up warningsAlyssa Ross
2016-11-14Warn developers when uninstalling a dependencyAlyssa Ross
Suggested in #1084. Made the existing warning output entirely to STDERR, because previously the first line went to STDERR and subsequent ones went to STDOUT.
2016-11-14No empty `when`s.Markus Reiter
2016-11-13No if/unless-modifier on multiline blocks.Markus Reiter
2016-11-13Update RuboCop to 0.45.0.Markus Reiter
2016-11-13Merge pull request #1217 from MatzFan/invalid_build_option_warningsMike McQuaid
Invalid build option warnings - supersedes #1088
2016-11-12fix other 10 failing tests - dohBruce Steedman
2016-11-12Filter formula build options based on those that exist.Mike McQuaid
If `--with-foo` is provided to a formula through a tab or through another formula depending on it and this option does not exist it should be filtered. If it is not (the prior behaviour) then this can prevent bottles being used unnecessarily. Fixes #1399.
2016-11-11uninstall: don't need kegs to exist for --force.Mike McQuaid
Otherwise there's an error which is a regression on previous functionality. This mirrors `rm -f` which doesn't fail if a file doesn't exist.
2016-11-11Merge pull request #1082 from alyssais/uninstall_dependancy_errorMike McQuaid
uninstall: refuse when dependents still installed
2016-11-06Merge pull request #1443 from MikeMcQuaid/better-development-tools-checksMike McQuaid
Improve debugging information based on failures
2016-11-06Merge pull request #1445 from MikeMcQuaid/caskroom-prefixMarkus Reiter
update-report: default Caskroom moved to prefix.
2016-11-05update-report: default Caskroom moved to prefix.Mike McQuaid
Look at HOMEBREW_PREFIX rather than HOMEBREW_REPOSITORY for the default Caskroom location.
2016-11-05install: only check fatal development tools checks.Mike McQuaid
2016-11-05Added a hint how to link a formula that is installed but not linkedihatetoregister