Markus Reiter
08be729af0
Support all cask options in brew install
.
2020-09-27 22:54:57 +02:00
Markus Reiter
f54b458cda
Allow installing casks with brew install
.
2020-09-27 22:53:32 +02:00
Mike McQuaid
2e5272d04c
Deprecate/disable code for Homebrew 2.5.0.
...
Do the usual "disable deprecations" and "uncomment pending deprecations"
dance and delete/deprecate/disable relevant/related code.
2020-09-03 10:34:22 +01:00
Seeker
f366280e18
formula: add any_installed_version
2020-09-01 09:45:54 -07:00
Seeker
5def0701ba
formula: rename opt_or_installed_prefix_keg
to any_installed_keg
2020-09-01 09:39:20 -07:00
Seeker
ce90a534da
install, livecheck: use opt_or_installed_prefix_keg
2020-08-31 10:34:56 -07:00
Mike McQuaid
dbe427073d
Merge pull request #8399 from MLH-Fellowship/migrate-to-args-named
...
args: Migrate usage of args loading methods to args.named
2020-08-25 10:07:27 +01:00
Markus Reiter
4937e4bbc3
Refactor and document Upgrade
.
2020-08-24 19:42:24 +02:00
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
Markus Reiter
490e503b1b
Replace Homebrew.args
with Context
.
2020-08-06 16:13:14 +02:00
Markus Reiter
6c964d4a78
Pass verbose?
to Keg#link
, Keg#unlink
and Keg#optlink
.
2020-08-06 16:12:52 +02:00
Markus Reiter
e9d8f09da1
Pass debug?
, quiet?
and verbose?
to FormulaInstaller
.
2020-08-06 16:12:52 +02:00
Bo Anderson
ab15c97c61
Fix dependents building from source when not requested
2020-08-02 00:46:17 +01:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Markus Reiter
6b0678e8ed
Remove args
from FormulaInstaller
.
2020-07-30 03:21:12 +02:00
Markus Reiter
05365b5542
Pass args
more explicitly in FormulaInstaller
.
2020-07-30 03:21:12 +02:00
Markus Reiter
c470a6ff43
Pass args
directly to prevent_build_flags
.
2020-07-30 03:21:12 +02:00
Markus Reiter
20bd4280ff
Pass args.cc
to Install
.
2020-07-30 03:21:12 +02:00
Markus Reiter
620ca4177e
Pass args
to FormulaInstaller
instead of using global args
.
2020-07-30 03:21:12 +02:00
Markus Reiter
b3eca532fc
Pass args
in install
instead of using global args
.
2020-07-30 03:21:12 +02:00
Markus Reiter
f8934c0255
Pass args
in Install
and Messages
instead of using global args
.
2020-07-30 03:21:12 +02:00
Markus Reiter
c0d42dd922
Remove --force
from global_options
.
2020-07-28 10:31:11 +02: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
Mike McQuaid
2c133a3d45
Check installed dependents on install and reinstall
...
It's not sufficient to do this merely on `brew upgrade` because
`brew install` and `brew reinstall` can also result in formulae being
upgraded.
This requires moving logic from `cmd/upgrade.rb` to `upgrade.rb`. To
save you searching the diff the changes that resulted from doing that:
- Query the installed formulae from class state in `FormulaInstaller`
rather than the (incomplete) list that we passed into it.
- Don't output the "Checking dependents" message. It was there for
systems and configurations where this is slow but for most users
and most installations this will be a (annoying, noisy) no-op.
Fixes https://github.com/Homebrew/brew/issues/7860
2020-07-02 12:53:52 +01:00
Michka Popoff
6eb80c67a4
install: add backtrace on failure
...
The error message might be useless alone
2020-06-27 09:59:56 +02:00
Mike McQuaid
11cf77be17
formula_installer: prelude before fetch.
...
This ensures that dependencies are verified and tapped before they are
fetched. `FormulaInstaller#lock` has been moved into
`FormulaInstaller#install` to avoid locking until necessary.
While we're here, don't compute dependencies before fetching if we're
not going to use them.
2020-05-23 13:40:13 +01:00
Mike McQuaid
08a9f0e1c0
Use FormulaInstaller#fetch before #prelude.
2020-05-11 09:38:26 +01:00
Michelle Nguyen
2264c08cee
Fetch formula resources before unlinking during upgrade.
...
Fixes #6374 .
2020-05-11 09:37:56 +01:00
Mike McQuaid
20a1199375
Refactor CLI to remove unless args_parsed
...
Refactor the CLI::Args module so it doesn't have different paths to
check arguments depending on whether the arguments have been parsed or
not. Instead, set the values we need from the global ARGV at
first, global initialisation time where they will be thrown away when
the actual arguments are parsed.
To do this some other general refactoring was needed:
- more methods made private when possible
- e.g. `HEAD?` used consistently instead of `head` before arguments
are parsed.
- formula options are only parsed after named arguments are extracted
2020-05-05 17:47:51 +01:00
Gautham G
38c24d134c
ARGV: Deprecate ARGV.casks and replace with Homebrew.args.casks
2020-05-02 13:21:16 +05:30
Mike McQuaid
020d6e2843
upgrade: suggest full_name when appropriate.
...
Otherwise `brew install foo/bar/baz` when an older version of `baz` is
installed will tell you to run `brew upgrade baz` which won't work.
2020-03-11 17:06:42 +00:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Gautham Goli
685a6b4da6
ARGV: Replace usages of ARGV.named with Homebrew.args.named
2019-12-18 20:38:21 +05:30
EricFromCanada
2f7c3afeb8
cmd: improve wording of messages, spacing
2019-12-15 00:04:45 -05:00
Gautham Goli
22e25dd593
argv: move formulae to cli/args
2019-12-11 16:36:23 +05:30
EricFromCanada
8a8359cdd4
manpages: sentence rewording for readability
...
Use active voice when applicable, better verbs & adjectives, preposition usage, proper tense, etc.
2019-08-20 09:05:45 -04:00
EricFromCanada
b4303cd983
manpages: fix command & option descriptions
2019-08-20 09:03:33 -04:00
EricFromCanada
329c6c78be
manpages: relocate some sections
...
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page.
2019-08-20 08:58:20 -04:00
EricFromCanada
6520785307
manpages: grammar fixes
2019-08-20 08:26:26 -04:00
EricFromCanada
a3e0647797
manpages: whitespace fixes
2019-08-20 08:24:20 -04:00
Mike McQuaid
9354081323
Add HOMEBREW_DISPLAY_INSTALL_TIMES
...
Fixes #6300
2019-07-28 11:12:32 +01:00
Mike McQuaid
653b82a720
cmd/install: fix installing tap formulae with options.
...
Fixes #6242 .
2019-07-25 21:20:49 +01:00
Mike McQuaid
c4f72312ce
Fixup brew style
failures.
2019-04-30 09:19:18 +01: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
fa6404e0f5
grammar fixes
2019-04-13 21:29:32 -04: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
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
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier.
2019-02-21 12:55:49 +00:00