aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2016-05-19audit: check more GitHub URLs. (#256)Mike McQuaid
GitHub’s code load and patch-diff URLs are the result of redirects and make it harder to modify the URL to reach the original repository.
2016-05-19install: fix documentation of --keep-tmp option (#258)Zhiming Wang
Obvious copy/paste failure in acc9a7ca8554bc2413dee2d6d0f407b3a59c628c.
2016-05-13fix shellcheck complaintXu Cheng
2016-05-13move git shell function to brew.shXu Cheng
git is also used in analytics.sh
2016-05-13move brew shell function to brew.shXu Cheng
2016-05-12brew pull: fix bogus line that was raising warningAndrew Janke
2016-05-12update: use lockXu Cheng
Closes #181. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-05-12pull: insert questionable syntax hackDominyk Tiller
I'm not completely sure this is "sane" logic but I'm leery of just reverting Andrew's work this morning and making him rebuild that PR from scratch for one syntax issue. Sadly, because we run: ``` brew readall --aliases --syntax ``` On every CI job, and that flags this line previously as: ``` pull.rb:555: warning: possibly useless use of a variable in void context ``` Every single PR has "failed" since it was merged, and it's reached the point of being a bit annoying, so let's try this.
2016-05-11cmd/pull: add retry to curl bottle download (#232)Andrew Janke
Works around issue with GET and HEAD apparently acting differently, and bottle downloads failing even after successful polling completion.
2016-05-11brew audit: add --display-filename format option for easy grepping (#221)Andrew Janke
2016-05-10cmd/pull: bump retry count.Mike McQuaid
2016-05-10Move more methods to DevelopmentTools.Mike McQuaid
Closes #1028.
2016-05-09update: fix hyphen counting (legacy tap renaming)Martin Afanasjew
Fix regression introduced in fafe8f0f53bf91fc41f016b5c2af41ca712783f7. Counting the number of hyphens in a string cannot be done in a single expression, thus split this and introduce another local variable. Fixes #227.
2016-05-09update: remove stray comma (legacy tap renaming)Martin Afanasjew
Fix regression introduced in fafe8f0f53bf91fc41f016b5c2af41ca712783f7.
2016-05-09fetch: document --retry option (#225)Martin Afanasjew
2016-05-09gist-logs: add proper documentation, improve error handling (#217)Jam
2016-05-08gist-logs: fix system_config reference.Mike McQuaid
2016-05-08pull: fix bottle_tag references.Mike McQuaid
2016-05-08tests: add generic flag. (#212)Mike McQuaid
Makes it easier to quickly do tests of the generic/cross-platform backend.
2016-05-08Make config command cross-platform.Mike McQuaid
Closes #168. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-05-08Make bottle code cross-platform.Mike McQuaid
2016-05-06brew install: make -s apply only to given formula, not deps (#205)Andrew Janke
2016-05-06cmd/fetch: fix typo in docoAndrew Janke
2016-05-06test-bot: only push once when uploading.Mike McQuaid
2016-05-05Reorder usage examples for brew helpMartin Afanasjew
- Reorder listed commands to better reflect a typical workflow (search, then query for details via `info` and friends, then install, later update and upgrade, at last maybe uninstall). - Remove niche `pin` and `unpin` commands. - Drop `--env` in the Troubleshooting section. And use `/REGEX/` instead of `/PATTERN/` to be clearer what is expected. Closes #177. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-05-04pull: fix references to renamed variableMartin Afanasjew
Fix bug originating in #132.
2016-05-03deps: split and clarify documentationMartin Afanasjew
`brew deps` has three different modes of operation that were not easy to infer from the existing documentation. Split the help text into three parts to make this clearer. This also improves on the confusion when options were silently ignored because they don't apply to a certain mode of operation. Those are: 1. List the shared dependencies (either intersection or union) of explicitly named formulae with options for traversal depth/order. 2. Output separate trees of explicitly listed or all installed formulae. 3. List all available/installed formulae and their direct dependencies with one line per formula formatted as `<formula>: <dependencies>`. Closes #137. Closes #179. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-05-03pull: fix polling code for Ruby 1.8.7 Net::HTTP (#191)Andrew Janke
2016-05-03update.sh: abort rebase and merge.Mike McQuaid
`brew update` can cause these so `brew update` should repair these.
2016-05-03update: improve some edge cases.Mike McQuaid
- When running `brew update` and there’s been no changes from upstream on any repositories there’s no need to call the (relatively) slow `brew update-report` when we already know what it will say (“Already up-to date.”). - When any`git fetch`es fail then throw out an error at the end of the output and produce a failing exit code (closes #65).
2016-05-03brew pull: cross-platform bottle verification, concise output (#132)Andrew Janke
Do the bottle check using any platform's bottle, so `brew pull` works on bottled formulae which don't include a bottle for the current system. Make output more concise and informative * Remove expected download error messages when waiting for Bintray publishing * Replace patch download progress bars with patch file name * Silence git output about switching to and from bottle-pulling branch * Include formula name and patch type in some progress messages
2016-05-03audit: fix false-positive for '--with-check' from 'depends_on "check" => ↵Andrew Janke
:optional' (#188) Fixes #170
2016-05-03update.sh: remove GIT_ASKPASS=false.Mike McQuaid
This doesn't work as expected and causes confusing user errors. References #95.
2016-05-02Update Homebrew/homebrew references in codeMartin Afanasjew
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
2016-05-02Update Homebrew/homebrew references in commentsMartin Afanasjew
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
2016-05-02update: escape ? in the help flag listXu Cheng
Otherwise it will match any character
2016-05-02update: more help flag (#180)Xu Cheng
To be synced with the help flag list in brew.rb
2016-05-01add `brew analytics` command (#173)Xu Cheng
2016-04-27audit: whitelist kibana from Language::Node check (#161)Christian Moritz
2016-04-27Language::Node.npm_install_args: add helper method (#37)Christian Moritz
* add Language::Node helper module This adds a language module for Node module based formulas. It contains the 2 public methods `std_npm_install_args(libexec)` and `local_npm_install_args`: * `std_npm_install_args` is intended to be used in formulas for standard node modules and returns `npm install` args for a global style module installation to libexec. * `local_npm_install_args` is for formulas, in which the `npm install` step is only one of multiple parts of the installation process and returns `npm install` args for a default local installation in place. Both methods have in common, that they are * making sure that a working copy of npm and node-gyp from node's libexec is prepended to the PATH (to not rely of a user managed npm) * seting the npm cache to HOMEBREW_CACHE/npm, which fixes issues caused by overriding $HOME resulting in long install times + high disk usage (see https://github.com/Homebrew/brew/pull/37#issuecomment-208840366) * audit: update npm install check for Language::Node * cleanup: remove npm_cache too * doc: add Node-for-Formula-Authors.md
2016-04-26Analytics: Separate user-supplied and internal-use DISABLE_ANALYTICS (#155)Andrew Janke
This prevents `brew` self-calls from interacting with the stickiness of HOMEBREW_NO_ANALYTICS being persisted to the brew repo and accidentally disabling analytics permanently when it should have been for just one run, while restoring the stickiness of an explicit user-supplied HOMEBREW_NO_ANALYTICS.
2016-04-25More analytics tweaks.Mike McQuaid
Provide a single command that can be run to disable analytics, run it if `HOMEBREW_NO_ANALYTICS` is ever set and remove the user UUID file in that case too. References https://github.com/Homebrew/brew/issues/142.
2016-04-25Point to analytics documentation on brew update.Mike McQuaid
Make sure that users are notified on the first run of `brew update` after we enabled analytics about how it works and how to opt-out. This will be shown to all users who have not already seen this message from `brew update` or through a new Homebrew installation. References https://github.com/Homebrew/install/pull/42 References https://github.com/Homebrew/brew/issues/142
2016-04-22config: return early if java_home is missingMisty De Meo
Fixes mistydemeo/tigerbrew#365.
2016-04-22update: rebase (rather than merge) by default.Mike McQuaid
We want to always avoid merge commits being committed to Homebrew so this feels like a better fit.
2016-04-22readall: also check 'brew.rb' for issuesMartin Afanasjew
Closes #119. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-22readall: stop using no longer needed 'nostdout'Martin Afanasjew
Since switching from `system` to `Utils.popen_read` we no longer need to suppress Ruby's output of `Syntax OK` to `$stdout`.
2016-04-22readall: fail on Ruby syntax warningsMartin Afanasjew
Previously, syntax warnings were printed, but didn't cause `readall` to exit with a non-zero exit code. Now they do, making it easier to catch accidentally introduced syntax warnings in the test bot.
2016-04-21brew-audit: pull style checks in to main audit outputAndrew Janke
This collects all violations for each formula in a single place, instead of doing `brew style` outputs for all formulae first, and then the other audit checks. Closes #112. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-20help: show command-specific help for invalid usageMartin Afanasjew
Instead of always printing the generic help text, print command-specific help if it is available and a command raised the `UsageError` exception. Put the error message underneath the help text (was above) to avoid that it scrolls off the screen. Thereby fix a regression where handling the invalid usage would fail to access `ARGV.usage` removed in c6536066dc39da653d265640c6ba6046bb5def98.