aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2017-02-23Convert `brew irb` test to spec.Markus Reiter
2017-02-17update-report: unlink rather than uninstall --force formula when ...Zhiming Wang
migrating a formula to a cask.
2017-02-13Merge pull request #1995 from MikeMcQuaid/log-follow-renamesMike McQuaid
log: follow renames.
2017-02-13Merge pull request #1994 from MikeMcQuaid/prefix-optMike McQuaid
--prefix: use opt_prefix when available.
2017-02-12Use constants for RuboCop version.Markus Reiter
2017-02-12log: follow renames.Mike McQuaid
Now that we can rename formulae this makes this command more useful for viewing longer histories.
2017-02-12--prefix: use opt_prefix when available.Mike McQuaid
Fixes #1952.
2017-02-12rubocop: trailing comma in multiline method callsAlyssa Ross
Discussed in https://github.com/Homebrew/brew/pull/1987/files#r100693581. This was originally ommitted because it wasn't compatible with Ruby 1.8. (See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971).
2017-02-04Pass invalid option names to formula installerThomas Maurer
This is the same that happens in the command 'install'. By passing the invalid option names, we enable the formula installer to output warnings if necessary.
2017-01-29update: note migrations may be performed.Mike McQuaid
As requested in https://github.com/Homebrew/homebrew-core/issues/9316.
2017-01-27style: update rubocop to 0.47.1Dominyk Tiller
2017-01-26update-reset: checkout with --force.Mike McQuaid
Otherwise it won't overwrite unmerged changes.
2017-01-18formula_installer: use attr_accessor for installed_*Mike McQuaid
2017-01-18upgrade: temporarily comment out for fix.Mike McQuaid
2017-01-18upgrade: tab installed_{as_dependency,on_request}Mike McQuaid
2017-01-18install: set installed_{as_dependency,on_request}.Mike McQuaid
2017-01-17Merge pull request #1863 from alyssais/uses_ignore_untappedMike McQuaid
uses: properly handle untapped formulae in recursive dependency expansion (again!)
2017-01-17Merge pull request #1862 from alyssais/uses_include_optionalMike McQuaid
uses: fix recursive requirement resolution
2017-01-16uses: restore formula-level exception handlerAlyssa Ross
This is a temporary measure until: - #1862 is merged - I can a test on `brew uses` against every formula in the official taps to verify that exceptions are no longer raised.
2017-01-16Revert "Revert "uses: properly handle untapped fo…Alyssa Ross
…rmulae in recursive dependency expansion"" This reverts commit dc9819b86c60b5c6fd10373ff318d8ef60f97d52.
2017-01-16uses: fix recursive requirement resolutionAlyssa Ross
Fixes #1848 by sharing recursive dependency resolution between dependencies and requirements. Coincidentally, this also fixes the errors introduced by #1784 that necessitated it being reverted in #1797.
2017-01-15Merge pull request #1846 from MikeMcQuaid/fix-head-upgrade-manMike McQuaid
Fix documentation for HEAD upgrades.
2017-01-15Fix documentation for HEAD upgrades.Mike McQuaid
These can now be done with just `brew upgrade`, like other upgrades. Fixes #1818.
2017-01-12brew deps --tree: fix gap in line between reqs and depsAndrew Janke
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.