3989 Commits

Author SHA1 Message Date
Jonathan Chang
7ddc185b35 Fix various typos 2019-08-19 16:12:34 +10:00
Jonathan Chang
fe36f3db67 cmd/link: fix typo 2019-08-05 15:10:00 +10:00
Mike McQuaid
1cd45a769d
Merge pull request #6330 from hogand/add-upgrade-dry-run
Add --dry-run to brew upgrade and brew cask upgrade
2019-07-28 15:18:13 +01:00
Mike McQuaid
41461b2c00
upgrade: tweak --dry-run wording. 2019-07-28 14:50:59 +01:00
Mike McQuaid
9354081323
Add HOMEBREW_DISPLAY_INSTALL_TIMES
Fixes #6300
2019-07-28 11:12:32 +01:00
Doug Hogan
7f6ef77d0e Address PR comments: remove test and use return ... if 2019-07-27 07:36:11 -07:00
Doug Hogan
9e0e012a56 cmd/upgrade: add --dry-run option. 2019-07-26 23:20:51 -07:00
Mike McQuaid
653b82a720
cmd/install: fix installing tap formulae with options.
Fixes #6242.
2019-07-25 21:20:49 +01:00
Mike McQuaid
8b646d750a
update-report: silence exception.
We don't care if the formula isn't available here. I've seen this a few
times with added formulae when my homebrew-core is on a non-master
branch.
2019-07-17 09:27:02 +01:00
Cheng XU
ce00a94737
remove extra command output when running brew list -v <formula>
`brew list -v <formula>` is used to list all files inside formula's keg.

However since 70b93f65eab70cd84d221059a2864a52202df141, an extra
`find /usr/local/Cellar/<formula>/<version> -not -type d -print` will be
printed out. Fix the problem by using `system_command!` instead of
`safe_system`.
2019-07-16 18:41:37 +08:00
Mike McQuaid
3cfb028e7f
Resource#fetch: verify downloads by default.
This API is used internally correctly and externally mostly correctly
but #6230 reveals the external usage is fairly confusing and a bit
unsafe by default. Preserve the existing API while verifying the
checksum by default and providing an opt-out. Using the existing, safe
method will result in a double verification of the checksum which is
harmless. A Homebrew/homebrew-core PR will follow shortly to address
those cases.

Fixes #6230
2019-06-15 17:22:45 +01:00
melvyn2
9f616b6fe9
cmd/tap-info: fix frozen pathname usage 2019-05-04 09:09:58 -07:00
Mike McQuaid
c4f72312ce
Fixup brew style failures. 2019-04-30 09:19:18 +01:00
Mike McQuaid
73528b6a08
Freeze more strings
Freeze the results changed in #6072.
2019-04-29 13:02:15 +01:00
Markus Reiter
ea76a7aaaf Unfreeze string. 2019-04-28 15:24:17 +02:00
Mike McQuaid
0b685bb890
upgrade: don't build bottles unnecessarily.
Fixes #6063.
2019-04-25 14:01:50 -07:00
Mike McQuaid
70b07a914f
cmd/info: fix frozen pathname usage.
Fixes #6055.
2019-04-24 14:17:04 -07:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Mike McQuaid
e40b171127
Rename cli_parser to cli/parser. 2019-04-17 22:16:50 +09:00
EricFromCanada
89f0fcedbe whitespace fixes 2019-04-13 21:32:04 -04:00
EricFromCanada
15c38a2d8b formatting fixes 2019-04-13 21:29:32 -04:00
EricFromCanada
fa6404e0f5 grammar fixes 2019-04-13 21:29:32 -04:00
Mike McQuaid
8d01cda922
Merge pull request #5925 from MikeMcQuaid/more-deprecations
Deprecate tap pinning (and remove `odisabled`)
2019-04-03 09:00:06 +01:00
Mike McQuaid
6987fb4d05
upgrade: make clear formula options are used (not install options). 2019-04-02 08:20:28 +01:00
Mike McQuaid
fdb18b8916
brew install --ignore-dependencies: unsupported, developer flag.
People are using this instead of adjusting their PATH.
2019-04-02 08:18:30 +01:00
Mike McQuaid
7d26a61cc8
Deprecate tap pinning
Tap pinning is not used by Homebrew or the Homebrew maintainers so issues relating to pinned taps (#5418, #5796) don’t get fixed. Tap pinning does not work consistently or reliably and is conceptually confusing to encourage users to use fully-scoped user/tap/formula naming or avoid shadowing core tap formulae' names instead.
2019-04-01 15:07:50 +01:00
Mike McQuaid
d12e39633c
Remove odisabled. 2019-04-01 15:07:50 +01:00
Mike McQuaid
70b93f65ea
*cmd/*: use *system instead of exec for easier testing.
This improves both test coverage, makes it easier to use a profiler and
a debugger.
2019-03-27 21:15:24 +00:00
Mike McQuaid
cf4511f72a
Merge pull request #5538 from zachauten/brew-info-display-casks
Make brew info output cask if no formula exists
2019-03-25 16:54:03 +00:00
Zach Auten
999c4743d0 Added flag for cask_reason to output cask info or just message with cask name 2019-03-24 15:28:34 -04:00
Zach Auten
517083474a Removed cask_reason from missing_formula.reason
- It won't output anything during a failed 'brew install'
- There's a seperate call to MissingFormula.cask_reason
  when 'brew info' is executed on a cask.
2019-03-21 17:35:38 -04:00
Mike Miller
fcd712eb58 update: make --help consistent, add options
Document short options and common global options. Apply the same indent
as other command help strings.
2019-03-16 23:12:17 -07:00
Mike Miller
e3ec8a7d47 update: add -f short option alias for --force 2019-03-16 23:11:16 -07:00
EricFromCanada
f97f7b615e deps: allow passing both --installed & --include-requirements
And update docs.
2019-03-14 21:00:21 -04:00
EricFromCanada
be040f9c66 info: update help text 2019-03-13 22:36:39 -04:00
EricFromCanada
705f03ef9f info: support analytics for cask-install 2019-03-13 22:36:12 -04:00
EricFromCanada
fbb28175d8 info: use UsageError, extend timeout 2019-03-13 22:35:51 -04:00
EricFromCanada
560ccddb69 help: rewrap output to 80 columns
Accounts for paragraph breaks and option descriptions. Also fixes some help text nits.
2019-03-11 12:52:07 -04:00
EricFromCanada
23c62b8b83 deps: fix --1 and --annotate options 2019-03-07 16:39:42 -05:00
EricFromCanada
aead4a720d outdated & tap-info: set default value for --json
Matching what's already been done for `brew info`.
2019-03-04 11:59:49 -05:00
Mike McQuaid
45243fe449
Revert "Fix Infinite Recursion in upgradable_dependents and broken_dependents" 2019-02-26 16:49:17 +00:00
Mike McQuaid
9b682da37b
Use Homebrew/linuxbrew-core
This would allow the Linuxbrew core tap to live in the Homebrew
organisation.
2019-02-25 14:21:13 +00:00
Shaun Jackman
8abc67a414 vendor-install: Add portable-ruby for aarch64 (ARM64) 2019-02-24 22:36:56 -08:00
なつき
193ead3c0c
fish 2.x support for brew shellenv 2019-02-21 17:54:29 -08:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause. 2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier. 2019-02-21 12:55:49 +00:00
Mike McQuaid
c6101196eb
Merge pull request #5773 from ntkme/shellenv
Support different shells for `brew shellenv`
2019-02-20 12:47:31 +00:00
Mike McQuaid
06a49484fb
Merge pull request #5751 from Frizlab/master
Fix Infinite Recursion in upgradable_dependents and broken_dependents
2019-02-20 10:25:35 +00:00
なつき
50ba2ad93f Support different shells for brew shellenv 2019-02-20 10:21:55 +00:00
Mike McQuaid
ae7492f3b5
Remove "undocumented options" that are documented options. 2019-02-16 20:07:28 +00:00