3352 Commits

Author SHA1 Message Date
Mike McQuaid
430bb7c3a0 update: tweak git too old check.
Avoid trying to install and warning if system Git is too old but Git
is already installed.
2018-02-27 10:41:16 +00:00
Mike McQuaid
72f4d05418 Handle a too old system Git on OS X 10.8 and below
Needed for GitHub since:
https://github.com/blog/2507-weak-cryptographic-standards-removed
2018-02-26 16:08:10 +00:00
Alyssa Ross
adb8c252b0
info: sort HEAD keys by install date
This makes a lot more sense than sorting alphabetically by commit hash,
the previous behaviour.
2018-02-26 09:21:38 +00:00
Mike McQuaid
f2ce6489b2 Use more docs.brew.sh short links
These are nicer on the eyes.
2018-02-22 19:46:58 +00:00
Mike McQuaid
a9c64c319f gist-logs: require API credentials.
Anonymous gists are going away shortly:
https://github.com/blog/2503-deprecation-notice-removing-anonymous-gist-creation
2018-02-19 16:14:32 +00:00
Chayoung You
b05d69f600
Format identifiers in oh1 2018-02-09 18:00:29 +09:00
Mike McQuaid
3a2e6b82fd Make pinning more robust
Don’t autoremove pins on uninstall or upgrade and note this in the
manpage.
2018-02-05 10:59:11 +00:00
EricFromCanada
1d2b4ed321 docs: add more missing option descriptions
and improve wording or formatting where necessary.
2018-02-01 16:06:17 -05:00
ilovezfs
69db925e8a fetch: also fetch resources' patches 2018-01-22 01:10:14 -08:00
Mike McQuaid
de0fedeb09 upgrade --all: use odeprecated. 2018-01-21 13:39:14 +00:00
Mike McQuaid
b96ec879dc (un)linkapps: hide from manpage, use odeprecated. 2018-01-21 13:38:44 +00:00
Mike McQuaid
8a45467ad9
Merge pull request #3661 from MikeMcQuaid/deprecate-default-formula
Deprecate default_formula Requirement DSL
2018-01-18 15:30:56 +00:00
Mike McQuaid
b17672a2b4
Merge pull request #3693 from ilovezfs/info-always-show-spec-options
info: show spec options for optionless formulae
2018-01-18 15:29:29 +00:00
ilovezfs
ebd50d136f info: show spec options for optionless formulae
Previsiouly, info would not display --HEAD or --devel for formulae that
had no options other than those spec options.
2018-01-18 00:03:10 -08:00
Mike McQuaid
8cd0d85afb rubocop 0.52.1 2018-01-15 16:17:32 +00:00
ilovezfs
17f80a44e6
Revert "Use Homebrew's gitconfig for various commands" 2018-01-15 07:30:56 +00:00
Mike McQuaid
253a41f523
Merge pull request #3670 from MikeMcQuaid/gitconfig
Use Homebrew's gitconfig for various commands
2018-01-14 18:17:06 +00:00
Mike McQuaid
fea90825fb vendor-install: various portable ruby tweaks.
- Rename repository to homebrew-portable-ruby
- Add a new Bintray repository using new name
- Add GitHub releases mirror and try to use it
- Tell people not to file issues if they can't connect to Bintray or
  GitHub: we're not here to provide ISP/proxy support.
2018-01-14 13:49:26 +00:00
Mike McQuaid
b70b5429d0 Deprecate default_formula Requirement DSL
This has been a nightmare in terms of the complexity to our dependency
system and the whack-a-mole required on bugs. If a Requirement resolves
to a Formula it should just use `depends_on "formula"` instead. This
matches the effective behaviour all users of bottles (the vast majority
of users and installs) and what we're doing in Homebrew/homebrew-core.
2018-01-14 13:27:43 +00:00
Mike McQuaid
228cbd81c9 Use Homebrew's gitconfig for various commands
Git is a transport and storage mechanism for us so we don't want to
allow arbitrary customisation of this due to user issues e.g. #3664
and #3561.

Fixes #3664.
2018-01-11 20:40:59 +00:00
Mike McQuaid
838a3f1996 reinstall/upgrade: stop unlinked kegs being sticky
It's not possible to determine the difference between a non-keg-only
keg that failed to link and one that wasn't linked by us intentionally.

To avoid additional complexity of storing this logic in another place
let's back out this relatively new functionality; sticky keg-only links
is a better and more desirable behaviour anyway.
2018-01-10 16:43:21 +00:00
Mike McQuaid
9ed1ed3c05 upgrade: fix UnsatisfiedRequirements exit code. 2018-01-09 09:07:37 +00:00
Mike McQuaid
dbeebcaef5 upgrade: skip formula if upgrade fails.
Rather than blocking the rest of the formulae from being installed by
`brew upgrade` print the requirement failure messages (already done) and
an error stating requirements weren't satisfied and then continue to
upgrade the rest of the formulae.
2018-01-08 14:38:10 +00:00
Mike McQuaid
1bd7d7df04 Use parser 2.4.0.0
This matches the version that supports Ruby 2.3.3 syntax (which is the
version we use).
2018-01-07 14:29:19 +00:00
Mike McQuaid
7eb1fd6671 reinstall/upgrade: document use of options.
To avoid user confusion e.g. #3606.
2017-12-30 21:23:33 +00:00
Mike McQuaid
7a8f61c28c gist-logs: use full path to brew.
This fixes the command with environment filtering enabled.
2017-12-14 16:44:25 +00:00
Mike McQuaid
5f471ee289 doctor: tell people not to file issues.
This stuff doesn't matter.
2017-12-11 15:27:18 +00:00
Mike McQuaid
837ea74f44
Merge pull request #3543 from MikeMcQuaid/remove-env-unsets
Remove some unset/checked environment checks
2017-12-10 17:46:29 +00:00
Mike McQuaid
6b9ca5dbf5 Remove some unset/checked environment checks
These will be redundant once environment filtering is on by default
in #3529.
2017-12-08 16:33:33 +00:00
L. E. Segovia
cf892c432e Revert extra deletion 2017-12-02 20:07:17 +00:00
L. E. Segovia
9603e39f16 Rename whole build_options block (copypaste from reinstall) 2017-12-02 20:04:03 +00:00
L. E. Segovia
da764c6d6c Delete --ignore-dependencies additions 2017-12-02 20:03:38 +00:00
L. E. Segovia
4dfe6e32e4 Let the upgrade command add new build flags 2017-12-02 17:14:46 +00:00
L. E. Segovia
5f5e689752 Remember --ignore-dependencies when installing and upgrading 2017-12-02 13:41:11 +00:00
Shaun Jackman
2dbc4ffaf3 vendor-install: Add ARM bottle for portable-ruby 2017-11-27 12:09:27 -08:00
Mike McQuaid
a19d0708a4 Allow optionally using Homebrew's curl
If `HOMEBREW_FORCE_BREWED_CURL` is set then allow it to be used instead
of the system `curl`.
2017-11-26 18:17:26 +00:00
Shaun Jackman
6da95d882d vendor-install: Observe HOMEBREW_STDERR
Suppress stderr unless HOMEBREW_STDERR is set.
2017-11-16 11:08:50 -08:00
commitay
ac799d9f2d brew list --pinned: pass explicit sort to handle APFS 2017-11-07 12:35:40 +10:00
commitay
ccecdab4cd brew list --versions: pass explicit sort to handle APFS 2017-11-06 20:27:23 +10:00
Mike McQuaid
7a68b4a3f9 Refactor command handling code
Don’t rely on having external commands always present in the PATH in
order to find them. Instead, provide an accessory method to Tap so
they can be added and used when needed.

While we’re here, do some general refactoring and cleanup of the
command code in these places.
2017-11-05 15:37:57 +00:00
Mike McQuaid
3549377478 cmd/sh: set working PS1 for zsh.
The `bash`, default one is broken on `zsh`.
2017-10-29 17:23:05 +00:00
Mike McQuaid
7caca57073
Merge pull request #3380 from jmsundar/apfs_tap-info
tap-info: handle APFS returning hash order
2017-10-28 13:08:12 +01:00
Jayendra Minakshisundar
ea7d356e08 style changes 2017-10-28 14:56:51 +05:30
Jayendra Minakshisundar
590f06187f tap-info: sort taps by name to handle APFS 2017-10-27 11:41:00 +05:30
Mike McQuaid
6114f48d5d Unhide readall and update-reset from manpage.
These are both tools that end-users can find useful on occasion so it
doesn't make sense to hide them.
2017-10-26 16:14:14 +01:00
Maxim Belkin
313410035d
leaves: account for requirements 2017-10-20 14:21:21 -05:00
Mike McQuaid
ed28ed78d1 Merge pull request #3304 from richiethomas/refactor_uses
In 'readall.rb', replaced multi-step 'each' loop with one-line method chain of Ruby enumerator methods
2017-10-20 18:10:31 +01:00
richiethomas
43cbf08018 Remove memoization from uses.rb, as it doesn't result in the expected time complexity savings 2017-10-20 09:42:30 -04:00
Mike McQuaid
76cd7c7949 Merge pull request #3319 from reitermarkus/squiggly-heredocs
Use “squiggly” heredocs.
2017-10-20 14:10:50 +01:00
Mike McQuaid
a2374cba6c Merge pull request #3334 from DomT4/ds_store_is_not_a_command
commands: filter out dotfiles from output
2017-10-20 11:01:27 +01:00