3989 Commits

Author SHA1 Message Date
JBallin
520b5a103a Clarify that --cleanup only runs on formulae which were just upgraded 2018-08-16 09:28:24 -07:00
JBallin
526262fca5 Change <formula> to <formulae> to match the suggested inputs 2018-08-16 09:28:24 -07:00
Claudia
61db35f77d
brew style 2018-08-16 09:01:46 +02:00
Brian Morton
ea29158a4d
update git config key for analytics bool 2018-08-16 08:19:11 +02:00
Brian Morton
77c242548e
update variable name and msg string per comments 2018-08-16 08:18:23 +02:00
Brian Morton
37f1ae61b2
add cask analytics msg on brew update 2018-08-16 08:16:33 +02:00
Mike McQuaid
b45b716a2e update-report: solicit donations.
This message will only be displayed once.

Fixes #4644.
2018-08-14 13:19:37 +01:00
Markus Reiter
55cde526a8 Deprecate brew cask cleanup. 2018-08-13 20:09:34 +02:00
Markus Reiter
17fda8d546
Merge pull request #4658 from reitermarkus/ignore-version-error
Set `initial_version` to `nil` when `git describe` fails.
2018-08-11 17:45:45 +02:00
Markus Reiter
bdc2458c15 Always fetch at least the latest tag. 2018-08-11 00:46:29 +02:00
Markus Reiter
211e8538ec Set initial_version to nil when git describe fails. 2018-08-10 22:48:12 +02:00
Markus Reiter
03b93da296 Use option parser for brew cleanup. 2018-08-08 13:11:16 +02:00
Markus Reiter
a2238f0eb3 Output message when migrating cache entries. 2018-08-08 07:34:24 +02:00
Markus Reiter
19ffbd5e68 Skip migration if HOMEBREW_DISABLE_LOAD_FORMULA is set. 2018-08-07 16:07:12 +02:00
Markus Reiter
888a7073bc Change migration to loop through formulae. 2018-08-06 17:25:29 +02:00
Markus Reiter
7449f9cd15 Fix update-report migration. 2018-08-06 12:52:18 +02:00
Markus Reiter
dca5dc8176 Add warnings for permission exceptions. 2018-08-05 16:03:21 +02:00
Markus Reiter
8158f045c4 Only run migration when updating from older version. 2018-08-05 15:57:28 +02:00
Markus Reiter
4065c1742d Add update migration for double dashes. 2018-08-05 15:57:28 +02:00
Mike McQuaid
19d87bf15f link: when refusing link display keg only caveats
These are a bit easier to follow and have been recently improved.

Inspired by conversation in #4441.
2018-07-26 10:49:55 +01:00
Mike McQuaid
74c77db5bd shell: tweak export_value parameters.
Let’s have a default value for shell (considering this isn’t a public
API) to make it easier to use.
2018-07-26 10:48:25 +01:00
Mike McQuaid
bd5131d710
Merge pull request #4392 from MikeMcQuaid/more-deprecation-disabled
Disable more deprecations.
2018-07-15 14:48:00 +01:00
Andrew Janke
0a2d8c3d4d Add --display-times option to install, reinstall, and upgrade 2018-07-14 11:06:03 -04:00
Mike McQuaid
5c6ef3d920 Disable more deprecations.
- Turn more old `odeprecated` into `odisabled`
- Remove more old `odisabled`
- Remove code for older Ruby versions
2018-07-14 16:00:50 +01:00
Mike McQuaid
060c615fae
Merge pull request #4361 from apjanke/collected-caveats
Display collected caveats at end of `install` or `upgrade`
2018-07-13 19:22:55 +01:00
Mike McQuaid
e1eb7dd3e3 Use Ruby 2.3.7
Fixes #4459.
2018-07-13 08:22:33 +01:00
Andrew Janke
c644392a85 Display collected caveats at end of install or upgrade 2018-07-12 20:41:32 -04:00
Mike McQuaid
7cc970fea2 link: refactor, reorder and fix bugs.
The change in #4441 broke the handling of the `elsif`s due to the
change in logic. As every block here has a `next` there's no need to do
an `elsif` in here at all. Additionally, reorder the conditions in here
so you get an appropriate message depending on what you're trying to do.
Finally, tweak some of the messaging to remove things that are ignored
and tell people correct commands to run to link things.
2018-07-10 09:32:42 +01:00
ilovezfs
461b61abac link: fix undefined dep_f 2018-07-09 21:23:25 -07:00
Mike McQuaid
2f181b3f41 link: stop unneeded force linking on Mojave/CLT 10.
People are getting in the habit of force-linking things like `zlib` to
fix linking/include issues on Mojave (which doesn't install headers to
`/usr/include` by default). This way lies madness so encourage people to
instead pass the correct compiler flags instead.
2018-07-09 16:09:00 +01:00
Afnan Enayet
133c3a3c0b
Fix typo
* change `MacOS` -> `macOS`
* regenerate manpages
2018-07-06 23:06:41 -04:00
Afnan Enayet
9579fadad4
Strip trailing whitespaces
This fixes the rubocop offences, which was blocking Travis
2018-07-05 21:33:29 -04:00
Afnan Enayet
72735aef17
Update documentation and generate manpage
* update references in `--cc` flag, using modern gcc examples
* note that issues should not be filed if `--cc` flag is used
* remove reference to `HOMEBREW_CC` as it should not be exposed to users
* generate manpages using `brew man` with these changes
2018-07-05 17:25:19 -04:00
Afnan Enayet
fd84bcbff7
Merge branch 'master' of github.com:Homebrew/brew into update-compiler-docs 2018-07-05 17:23:09 -04:00
Afnan Enayet
fa41a66907
Update manpages using man brew
Properly update man pages using the local brew executable (from the repo),
and copy the man pages to the repo.
2018-07-01 18:47:13 -04:00
Markus Reiter
a15b016ea6 Use if for assignment. 2018-07-02 00:11:42 +02:00
Markus Reiter
785750ee63 Add Tap#contents methods. 2018-07-01 18:48:28 +02:00
Mike McQuaid
61a8c4d1fb
Merge pull request #4300 from apjanke/new-rubocop-version
Upgrade to Rubocop 0.57.2
2018-07-01 09:08:16 +01:00
Andrew Janke
e0a8a79921 Style fixes for Rubocop 0.57.1 2018-06-30 19:40:14 -04:00
Markus Reiter
e3bb004ad7
Merge pull request #4372 from reitermarkus/cask-search
Readd functionality to list all casks.
2018-06-30 02:40:39 +02:00
Mike McQuaid
1bf3aacc79
Merge pull request #4389 from MikeMcQuaid/bintray-portable-ruby
portable-ruby: respect HOMEBREW_BOTTLE_DOMAIN variable.
2018-06-29 20:07:11 +01:00
Mike McQuaid
facd76bc51 portable-ruby: respect HOMEBREW_BOTTLE_DOMAIN variable.
This was requested in:
https://discourse.brew.sh/t/adding-additional-download-sources-to-homebrew/2446

With this change you can use e.g. Artifactory for Homebrew's portable
ruby.
2018-06-29 19:51:18 +01:00
Jack Haden-Enneking
e63feb79f9
Simplify check before git install
No need to check for both variables, because they're always set together.
Also, this harmonizes with the CURL equivalent just above.
2018-06-26 11:14:32 -07:00
Jack Haden-Enneking
9fd5a92ff6 Implement HOMEBREW_FORCE_BREWED_GIT
Because of this messing with the user's path:
https://github.com/Homebrew/brew/blob/
    efc02899c851c62c9ce0d15dea9a231575d7d774/bin/brew#L68
brew uses /usr/bin/git over brewed git, even when the former is
problematically old.
There may also be other reasons a user prefers to use brewed git.

There was already a HOMEBREW_FORCE_BREWED_CURL option and a
HOMEBREW_SYSTEM_CURL_TOO_OLD check to set it. This mostly copies those
to implement HOMEBREW_FORCE_BREWED_GIT & HOMEBREW_SYSTEM_GIT_TOO_OLD.

See also: https://github.com/Linuxbrew/brew/issues/736
2018-06-25 23:36:12 -07:00
Markus Reiter
6a44c529e5 Readd functionality to list all casks. 2018-06-23 01:54:07 +02:00
Markus Reiter
fcd75877c5 Update brew search help. 2018-06-19 13:48:23 +02:00
Markus Reiter
b265d870ed Allow searching Casks by name. 2018-06-18 16:23:36 +02:00
Markus Reiter
b21430b13c Use extend/os pattern. 2018-06-18 16:23:36 +02:00
Markus Reiter
1d629c6978 Don’t show Casks on Linux. 2018-06-18 16:23:35 +02:00
Markus Reiter
da193d2f7e Merge brew cask search into brew search. 2018-06-18 16:23:35 +02:00