4907 Commits

Author SHA1 Message Date
Mike McQuaid
5606817293
info: handle license array.
Fixes https://github.com/Homebrew/brew/issues/8132
2020-07-29 11:01:37 +01:00
William Ma
cc63cece76 deps: print cask dependencies
* Allow references to commands when using `brew deps`, e.g. `brew deps
cellery`
* Fix crash when using `brew deps <formula> --installed
--include-requirements`
* Do not include runtime dependencies as direct dependencies when using
`--tree`
2020-07-28 20:24:19 -04:00
Mike McQuaid
0be15fc4b7
Run brew update before brew bundle.
This should help with cases like
https://github.com/Homebrew/homebrew-bundle/issues/751
and is good practise in general.

Also, document the `brew update --preinstall` flag that is being used
here so others can run it manually e.g. as part of CI if needed.
2020-07-28 11:49:52 +01:00
Markus Reiter
c0d42dd922 Remove --force from global_options. 2020-07-28 10:31:11 +02:00
Mike McQuaid
e6b066a3d9
Merge pull request #8108 from mistydemeo/upgrade_avoid_unrequested_casks
upgrade: avoid upgrading unrequested casks
2020-07-28 08:47:00 +01:00
Markus Reiter
276c570c16 Pass individual args explicitly to ENV extensions. 2020-07-28 02:52:45 +02:00
Misty De Meo
f6468ecf00 upgrade: avoid upgrading unrequested casks
Fixes #8107.
2020-07-27 13:25:35 -07:00
Mike McQuaid
2ff56c9e71
Merge pull request #7927 from MLH-Fellowship/integrate-cask
Allow references to casks when running upgrade and outdated
2020-07-27 15:11:32 +01:00
William Ma
fa60d99265 outdated: vary deprecated message depending on flag 2020-07-27 09:34:52 -04:00
William Ma
f8708ae80c Add todo for --json=v1 deprecation 2020-07-27 09:12:30 -04:00
Mike McQuaid
047738069f
Speed up timing-out tests.
- make `brew readall` only check Homebrew/brew syntax with no tap
  passed.
- pass specified tap to `brew readall` test for speed
- only shell out once in `FormulaInfo` test for speed
2020-07-27 14:01:22 +01:00
Mike McQuaid
2100335441
Merge pull request #8049 from MLH-Fellowship/cask-commands
commands: Print cask commands
2020-07-27 12:44:21 +01:00
William Ma
f1b6a8debd Fix style 2020-07-26 22:12:08 -04:00
William Ma
2188b268de
Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-26 22:03:04 -04:00
Dustin Rodrigues
e02d08f020 re-enable build from source for install, reinstall, upgrade 2020-07-25 22:27:54 -04:00
Markus Reiter
8a1f8ab858 Pass args to FormulaInstaller instead of using global args. 2020-07-25 04:21:21 +02:00
Markus Reiter
6c050492ee Pass args to Analytics instead of using global args. 2020-07-25 03:57:43 +02:00
Markus Reiter
25b3632c4c Pass args to ENV instead of using global args. 2020-07-25 03:57:43 +02:00
Markus Reiter
a6bc9e155a Add helper functions for --cache and fetch explicitly. 2020-07-25 02:37:10 +02:00
Markus Reiter
cfbe1fb3c7 Add helper functions for deps and uses explicitly. 2020-07-25 02:37:10 +02:00
William Ma
33f1c3164b commands: Use a hash instead of nested arrays 2020-07-23 12:23:36 -04:00
William Ma
8d4a443e4d outdated: Fix most code review comments 2020-07-22 22:52:18 -04:00
William Ma
de4f5c1095 commands: Fix code review comments 2020-07-22 22:47:42 -04:00
Seeker
fb2e228e9a
Merge pull request #8044 from SeekingMeaning/uses+dependents
cmd/uses: mention "dependents" in help text
2020-07-22 10:44:44 -07:00
Jonathan Chang
45c78ffe9c
Merge pull request #8060 from jonchang/update-report-speedup
update-report: speed up automatic updates
2020-07-23 00:57:37 +10:00
Jonathan Chang
26549d312b update-report: faster autoupdate
This disables verbose reporting of new formulae versions when
automatically updating before e.g. `brew install`.
2020-07-22 22:53:03 +10:00
Mike McQuaid
e4eff8ebb6
Merge pull request #7974 from MLH-Fellowship/integrate-doctor
doctor: Run cask doctor checks in brew doctor
2020-07-22 13:27:53 +01:00
William Ma
b4f8e23ee1 outdated: Fix documentation style
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2020-07-20 14:35:27 -04:00
Seeker
de3edd1c24 cmd/uses: mention "dependents" in help text 2020-07-20 11:26:56 -07:00
William Ma
0b613d2fe3 commands: Deduplicate command print logic 2020-07-20 14:00:16 -04:00
William Ma
3bbffdd1d7 commands: Print cask commands 2020-07-20 13:18:09 -04:00
Tim Dorr
45368c8119 Add a default back to INFOPATH
It looks like #7738 removed the default unintentionally. This adds it back. 

For scripts that `set -u`, this will fail if $INFOPATH is not already set (`INFOPATH: unbound variable`). This provides an empty default, but one that will still satisfy the trailing colon requirement.
2020-07-19 13:37:52 +10:00
William Ma
03857319c9 outdated: Update documentation about json versions 2020-07-17 10:28:09 -04:00
William Ma
8c5140f6e6 outdated: Implement json v2 2020-07-17 08:53:19 -04:00
William Ma
299db98dbf Fix PR issues 2020-07-16 23:31:26 +10:00
William Ma
d81296f8dc outdated: Rename --formula-only and --cask-only to --formula and --cask
For consistency with brew --cache
2020-07-16 23:31:26 +10:00
William Ma
ee0e9945e0 outdated: Update logic when handling --json to be more explicit 2020-07-16 23:31:26 +10:00
William Ma
966131f768 outdated: Fail when user supplies formulae and some are outdated 2020-07-16 23:31:26 +10:00
William Ma
a3da9fa350 outdated: Actually print json information for casks 2020-07-16 23:31:26 +10:00
William Ma
bdc99ebd98 outdated: Allow references to cask 2020-07-16 23:31:26 +10:00
William Ma
ad04284a20 upgrade: Move logic to find outdated formulae into upgrade method 2020-07-16 23:31:26 +10:00
William Ma
210d22e819 Integrate upgrade with cask 2020-07-16 23:31:26 +10:00
Jonathan Chang
ea47dce9ee
Merge pull request #7991 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-0.88.0
build(deps): bump rubocop from 0.87.1 to 0.88.0 in /Library/Homebrew
2020-07-14 00:40:36 +10:00
Jonathan Chang
76709d82c5 Fix brew style. 2020-07-13 23:24:14 +10:00
Adrian Ho
c166667666 shellenv: Fix shell detection
It currently switches on `$SHELL`, which points to the user's login shell. However, `shellenv` may be used in contexts where the running shell isn't `$SHELL` (e.g. csh-based `cron` scripts), and Linux desktop environments may set up user sessions in ways that trip up the current algorithm (see #7965 for an example). To work correctly in all circumstances and environments, its output should be determined by the context (calling shell) instead.

Fixes #7965.
2020-07-11 22:28:27 +08:00
William Ma
447ea12d38 doctor: Move cask doctor checks to brew diagnostics 2020-07-10 10:36:59 -04:00
William Ma
62a5614850 list: Update documentation 2020-07-09 11:21:22 -04:00
William Ma
8f3d230995 list: Remove extraneous flag conflicts 2020-07-08 20:39:54 -04:00
William Ma
28c0962430 list: Integrate brew list with brew cask list 2020-07-08 12:02:42 -04:00
William Ma
525d1ac27d Fix PR issues 2020-07-03 10:33:38 -04:00