aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2016-06-24bottle: avoid raising exception in ensure blockMartin Afanasjew
The `ensure` block can be reached before the tab is modified (and thus before `original_tab` gets populated). Avoid raising an exception when attempting to restore a tab that hasn't been modified yet, e.g. because relocating some of the Mach-O binaries failed.
2016-06-22audit.rb: require https for ftpmirror.gnu.org (#393)Viktor Szakats
* audit.rb: require https for ftpmirror.gnu.org The situation is similar to other mirror redirectors: the server may subsequently redirect to an insecure url. But it's a step. * manpage: update HOMEBREW_NO_INSECURE_REDIRECT section
2016-06-22update-report: remove unconditional cask/formula uninstall.Mike McQuaid
2016-06-22update-report: migrate formulae to casks. (#375)Anastasia Sulyagina
2016-06-19pull: skip non-ruby files when collecting formulae namesBaptiste Fontaine
Closes #377. Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-06-16update.sh: quieten checkout.Mike McQuaid
2016-06-14man: auto detect maintainers listXu Cheng
2016-06-12update.sh: developers always run update-report.Mike McQuaid
As they may use e.g. `git pull` which may result in them having formulae that aren't migrated (and they mind less about the slight slowdown).
2016-06-11deps should respect skip-recommendedilovezfs
For example, `brew deps libass --skip-recommended` shouldn't print harfbuzz because, even though libass builds with harfbuzz when harfbuzz is not skipped, we asked to skip recommended, of which harfbuzz is one. The corresponding change is made for `brew uses` as well. Thanks to Xu Cheng for contributing the code. Any errors are mine. Closes #129. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-07audit: detect more 'pkgshare' candidates (#328)Martin Afanasjew
The new check also allows the `+` operator instead of our (still heavily preferred) `/` operator for path concatenation and also triggers if the operator is surrounded by whitespace. Also recognizes single-quoted strings and uses a back reference to match the closing quote for a slightly lower chance of false positives. Closes #322.
2016-06-05update: pop the stash more quietlyilovezfs
git stash pop -q will print "Already up-to-date!" if untracked changes are being poppped. This quiets it down unless verbose is set. Closes #320. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-05gist-logs: fix new-issue URL.Mike McQuaid
2016-06-03bottle: use short formula name in bottle commitMartin Afanasjew
2016-06-03cmd/pull: fix HTTP header usage.Mike McQuaid
2016-06-03update: tweak stash/checkout behavior. (#312)Mike McQuaid
Always pop stashed changes for Homebrew developers and only checkout original branches for them (to avoid users who don't understand Git ending up "stuck" on branches).
2016-06-03Use `curl` for the GitHub API (#295)Mike McQuaid
* Move GitHub API module to utils/github.rb. * Move curl method to utils/curl.rb. * global: use long curl arguments and an array. This makes the code more self-documenting. * utils/curl: support reading curl's output. * utils/github: use curl instead of open-uri. It has far better proxy support. * pull: set Homebrew user agent. * gist-logs: remove trailing whitespace. * gist-logs: use first instead of [0]. Easier to read. * gist-logs: use curl-based GitHub.open method.
2016-06-02audit: check Maven Central URLs, prefer redirector (#311)Martin Afanasjew
Should help with being more consistent and makes sure to suggest the HTTPS redirector even if equally valid HTTP URLs for specific hosts or `central.maven.org` are used.
2016-06-01update-report: improve cache migration messaging.Mike McQuaid
2016-06-01update-report: recreate migration_attempted_file.Mike McQuaid
If the deletion of `HOMEBREW_CACHE` fails then the `.migration_attempted` file will have still been deleted so ensure it is recreated.
2016-06-01update-report: fix Mavericks check.Mike McQuaid
2016-06-01Move HOMEBREW_CACHE to ~/Library/Caches (#292)Mike McQuaid
* cleanup: accept cache as an argument. * config: move default HOMEBREW_CACHE to ~/Library. * brew.1: document new default Homebrew cache. * update-report: migrate legacy Homebrew cache.
2016-06-01style: use RuboCop 0.40Martin Afanasjew
2016-05-31audit: appease rubocopDominyk Tiller
Closes #302. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-05-31audit: prefer https/s over ftp where known availableDominyk Tiller
The FTP protocol is prone to getting firewalled to death in places, so where we know we can avoid that by using either secure or more commonly accepted protocols let's do so. Examples of output: ``` * Stable: ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NE/NEILB/Time-Duration-1.20.tar.gz should be `http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Time-Duration-1.20.tar.gz` * Stable: Please use https:// for ftp://ftp.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.89.tar.bz2 ```
2016-05-31audit: update mirrorservice checkDominyk Tiller
mirrorservice accepts `http://ftp.mirrorservice.org` as well, apparently.
2016-05-31audit: check for insecure metacpan urlsDominyk Tiller
2016-05-31Revert "audit: tweak cpan secure urls"Dominyk Tiller
This reverts commit 7bbcf9cacc18aabf78a21ec5cc5892d440631e08.
2016-05-31Revert "audit: tweak cpan secure urls"Dominyk Tiller
This reverts commit 146a16d66bc796f0c6a4c7e2b88f1b73fb0aaa4c.
2016-05-30tap: default to full clones for developers. (#297)Mike McQuaid
You need a non-shallow clone to push branches upstream so if you often tap and untap taps (e.g. `homebrew/boneyard`) then you need to remember to manually `fetch -unshallow`.
2016-05-30test-bot: move to dev-cmd. (#298)Mike McQuaid
This is not a command designed for end-users.
2016-05-30tests: no --only minimum coverage requirement. (#299)Mike McQuaid
This will almost certainly fail every time so let's disable this error.
2016-05-30bintray "package" should be name not full_nameilovezfs
Based on how it's used to construct URLs, the bintray "package" should be the formula name not the formula full_name. For core formulae, there is no difference, but that's not the case in other taps. See https://github.com/Homebrew/homebrew-gui/pull/10 Closes #301. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-05-29audit: make system check stricter with quotes.Mike McQuaid
As mentioned in: https://github.com/Homebrew/homebrew-core/pull/1396#discussion_r64774080
2016-05-29audit: tweak cpan secure urlsTomasz Pajor
2016-05-29audit: tweak cpan secure urlsTomasz Pajor
2016-05-28test-bot: don't `brew tests` for formula PRs. (#294)Mike McQuaid
This adds >1m to every build on every node and it can't actually be affected/fixed by formula PRs.
2016-05-28pull: remove legacy retry block.Mike McQuaid
2016-05-28bottle/test-bot: deep merge bottle JSON hashes.Mike McQuaid
2016-05-28pull: remove legacy-homebrew support. (#293)Mike McQuaid
There's no more pull requests left to pull on this repository.
2016-05-28test-bot: only test --no-compat for Homebrew/brew. (#286)Mike McQuaid
This job takes almost a minute and it's not useful for all core taps to run this.
2016-05-28test-bot: remove support for legacy Homebrew repo. (#287)Mike McQuaid
We're not really getting any more PRs here and this code makes this file harder to follow and refactor.
2016-05-28bottle: JSON-related tweaks/fixes.Mike McQuaid
2016-05-28test-bot: fix tag reference.Mike McQuaid
2016-05-28Use JSON files for bottle upload data. (#166)Mike McQuaid
This means that we do not need to read formulae or evaluate Ruby at upload time.
2016-05-26search: add alias -S back to zero-argument helpMartin Afanasjew
Amends 132ada2b0ebb3751c0f8f42ca83bb257b55a50fd until we properly figure out a way of documenting built-in aliases (or not doing that) across all commands that currently have aliases. See #270 for full discussion.
2016-05-26Clarify brew search usage. (#270)Joe Gallo
* Include --desc in brew search help text. * Update brew search --desc text in README. * Remove mention of alias in brew search help text to avoid any confusion.
2016-05-26audit: minor spacing nitDominyk Tiller
Closes #248. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-05-26audit: tweak devel/head tap checkDominyk Tiller
For some reason the existing check seems to have started failing between March and today. I haven't managed to narrow down why yet but the biggest change between then and now was the core separation so perhaps related to that. Perhaps at some point we started considering purely short tap names, i.e. homebrew/devel-only rather than full tap names, i.e. homebrew/homebrew-devel-only, in the audit mechanism. This fixes the current issue whilst retaining the spirit of the original commit: https://github.com/Homebrew/brew/commit/86d04e94e9caacf4aba766dd31c1707749fb5f2b
2016-05-20audit: enforce freedesktop secure urlsDominyk Tiller
2016-05-19audit: check for block inreplace with single sub. (#254)Mike McQuaid
There are unnecessarily verbose, have been documented to be avoided and it’s good to nudge people towards the other style.