aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2017-05-07Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"Mike McQuaid
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07Vendor all Homebrew's gems.Mike McQuaid
Homebrew's actually ended up using a fair few gems. While we want to avoid Bundler at runtime (and this PR still does that, in fact uses Bundler even less at runtime than it did before) writing our own version to use at build-time seems redundant.
2017-05-03style: fix audit --onlineMike McQuaid
This passed a symbol to `:except_cops` which caused a :boom:.
2017-05-03style: don't require rubocop until installed.Mike McQuaid
This avoids an error when RuboCop installed installed yet. CC @GauthamGoli FYI.
2017-05-03Merge pull request #2531 from GauthamGoli/audit_cops_options_refactorMike McQuaid
audit: Allow skipping/selective running of cops and cops refactor
2017-05-03Add `--only-cops`,`--except-cops` options for brew style and simplify cop namesGautham Goli
2017-05-03Install etc/var files on postinstall.Mike McQuaid
Also, don't delete them after that. This means that `brew postinstall` becomes a way to easily reinstall configuration files for any formula without needing any changes to any bottles or requiring a reinstall.
2017-05-02Add `--only-cops`,`--except-cops` options for brew auditGautham Goli
Also refactor audit cops into two "departments" - FormulaAudit - FormulaAuditStrict
2017-05-02Let cops run without --strict flagGautham Goli
2017-04-30Make `PATH` enumerable.Markus Reiter
2017-04-30Use `PATH` where possible.Markus Reiter
2017-04-25Add `GitHub::search_code` method.Markus Reiter
2017-04-25Allow forcing Homebrew GitHub organisation.Mike McQuaid
On Linux this defaults to Linuxbrew but in some cases (i.e. a Linux machine performing uploads for Homebrew) we want to allow this to be overridden back to the defaults. Relies on a change incoming to `brew test-bot` to set this there.
2017-04-24search: use single HTTP call for tap searches.Mike McQuaid
Use GitHub's code search API to search using the filename based on the search query. This means we only need a single HTTP call and no more multithreading madness. This also means we're able to search everything in the Homebrew and Caskroom organisation by default without having to maintain a list of things to search (and not) in here.
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2017-04-20Add `OFFICIAL_CASK_TAPS` in `official_taps.rb`.Markus Reiter
2017-04-20Lowercase `Caskroom` in `search`.Markus Reiter
2017-04-18install: don't search when formula is unreadable.Mike McQuaid
These formulae are detected as missing but exist in an unreadable form. Fixes #2485
2017-04-17Merge pull request #2475 from MikeMcQuaid/uses-deletedMike McQuaid
uses: allow checking deleted formulae.
2017-04-17uses: allow checking deleted formulae.Mike McQuaid
This is useful for seeing when formulae are deleted if they are going to leave behind any formulae that depend on them. As a result, if there are any formulae returned return a non-zero/failed exit status.
2017-04-17install: use include instead of regex.Mike McQuaid
2017-04-15install: do not search taps when a qualified formula is missingZhiming Wang
2017-04-04update-report: don't show new, installed formulae.Mike McQuaid
These were those migrated from other taps but if they are installed already: they aren't new to that user.
2017-04-02Handle missing receipt on `brew install`.Mike McQuaid
For example if this is for a really old keg, keg where a user has manually removed stuff or used `brew diy`.
2017-04-02Document all short flags.Mike McQuaid
2017-04-01Fix the 'export PATH' message in `link` for a keg-only formulaEugene Nikolsky
Commit 4cae6a724e6d684eb157dd6d7328755694f228b2 introduced the message, but it printed the wrong path, e.g. for `brew link sqlite`: ``` If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/sqlite:$PATH"' >> ~/.zshrc/bin ``` where `/bin` is appended at the end, but should be inserted before `:$PATH`: `echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc`. This patch fixes that and updates a test to verify it.
2017-03-31migrator: check if taps are from same user insteadMike McQuaid
This avoids needing to use `force: true` and still let's Homebrew do what we want with our own taps.
2017-03-31upgrade: perform rename migrations when needed.Mike McQuaid
2017-03-31reinstall: perform rename migrations when needed.Mike McQuaid
2017-03-31install: perform rename migrations when needed.Mike McQuaid
2017-03-31update-report: more forceful rename migration.Mike McQuaid
Migrate between different taps and delete relevant subdirectories if they can be safely. Also, tweak some naming and use utility methods.
2017-03-31Merge pull request #2374 from joshka/cleanup-command-continue-on-errorMike McQuaid
Cleanup: Continue on error removing keg
2017-03-31Brew cleanup: Continue on error removing kegJoshua McKinney
Fixes #2355 Create unremovable_kegs instance var Check cellar cleanup failure after full cleanup completes Use module_function in Homebrew::Cleanup as we never instantiate the class
2017-03-27Add pinned version to outdated json outputWilliam Roe
The structure should be consistent, so there are always pinned and pinned_version fields even if there are no pinned versions for a given formula.
2017-03-27Add pinned version to outdated outputWilliam Roe
2017-03-23Merge pull request #2372 from MikeMcQuaid/link-keg-only-path-messageMike McQuaid
link: tell users of `brew link --force` about opt.
2017-03-23link: tell users of `brew link --force` about opt.Mike McQuaid
If people are force-linking keg-only things they should probably be told that they can add the opt prefix to their PATH instead.
2017-03-23search: silence searching git log.Mike McQuaid
2017-03-23install: immediately print FormulaUnavailableError.Mike McQuaid
2017-03-23info: immediately print FormulaUnavailableError.Mike McQuaid
2017-03-21update-report: check migration symlinks.Mike McQuaid
Check if `HOMEBREW_CELLAR/old_name` is a symlink. If so, it's already been migrated so can be skipped.
2017-03-21Merge pull request #1732 from zmwangx/hint-migrationsMike McQuaid
Hint at new location of migrated formulae
2017-03-21Merge pull request #2370 from MikeMcQuaid/update-migrate-all-formulaMike McQuaid
update-report: migrate all formulae every time.
2017-03-20missing_formula: subsume historic logic.Mike McQuaid
These methods belong together so combine them in a single class to provide a simpler API.
2017-03-20blacklist: move to missing_formula class instead.Mike McQuaid
This will allow extending this class so it can be used by more than just blacklisting.
2017-03-20cmd/log: improve output messaging.Mike McQuaid
This wasn’t adapted to the new, multiple repository world.
2017-03-20search: tweak specific formula match formatting.Mike McQuaid
2017-03-20Hint at new location of migrated formulaeZhiming Wang
Partial implementation of https://github.com/Homebrew/brew-evolution/pull/15, along with the ability to search for deleted formulae in git history (inspired by #1996) which is not described in the proposal. See also: #1371.
2017-03-20update-report: migrate all formulae every time.Mike McQuaid
Unmigrated formulae cause hard-to-debug issues and relying on detection on Git alone is faster but not comprehensive. Instead, iterate through renamed, installed formulae every time and migrate them. Closes #1770.
2017-03-20update-report: migrated formulae were not deleted.Mike McQuaid
The taps they were migrated to are auto-tapped if not already tapped anyway so don't show them as deleted to avoid confusion.