Bo Anderson
5692c8ecbf
Fix style violations under newer RuboCop
2023-12-14 05:47:12 +00:00
Eric Knibbe
931f762598
docs+rubydoc: various grammar/wording fixes
2023-09-11 02:26:37 -04:00
Bo Anderson
a696bd8203
Support multiple oldnames for formulae
2023-04-27 05:15:43 +01:00
Douglas Eichelberger
95bea08a3b
Fix visibility modifiers
2023-04-17 11:10:40 -07:00
Douglas Eichelberger
7fdd75ad41
brew style --fix
2023-04-17 11:00:55 -07:00
Douglas Eichelberger
09c679e75f
Refactor module_function to reduce rbi need
2023-04-17 10:37:59 -07:00
Carlo Cabrera
6c3361e80f
install: check for --only-dependencies
flag earlier
...
Currently, doing `brew install --only-dependencies` with an unlinked
formula does nothing and returns a message saying the formula is already
installed but just not linked.
I think that we should just install the dependencies as requested here
instead of complaining that the formula isn't linked.
Before:
❯ brew unlink adplug
Unlinking /usr/local/Cellar/adplug/2.3.3... 8 symlinks removed.
❯ brew install --only-dependencies adplug
Warning: adplug 2.3.3 is already installed, it's just not linked.
To link this version, run:
brew link adplug
After:
❯ brew install --only-dependencies adplug
==> Fetching dependencies for adplug: libbinio
==> Fetching libbinio
==> Downloading https://ghcr.io/v2/homebrew/core/libbinio/manifests/1.5
[snip]
See Homebrew/homebrew-core#127133 for additional context.
2023-04-02 01:39:23 +08:00
Ruiyang Wu
007c896c97
Fix brew install --skip-post-install
...
Previous #15042 doesn't pass the flag all the way to
`FormulaInstaller.new`
2023-03-30 21:08:40 -04:00
Dustin Rodrigues
b776fb32de
change includecount to include_count for readability
2023-03-20 07:23:17 -04:00
Dustin Rodrigues
e5fba88035
use includecount argument in pluralize
2023-03-19 23:35:47 -04:00
Issy Long
e9d994622e
rubocop: Drop "f" from Naming/MethodParameterName
allowlist
...
- This either stands for "file" but more often than not "formula".
2023-03-11 00:17:27 +00:00
Douglas Eichelberger
0eccc0e987
git grep -l Utils::Inflection | xargs gsed -i 's|Utils::Inflection|Utils|g'
2023-02-27 20:18:27 -08:00
Douglas Eichelberger
3da68651e5
Port more call sites
2023-02-27 20:18:08 -08:00
Bo Anderson
2055792791
Better support source builds under API mode
2023-02-06 13:27:36 +00:00
Mike McQuaid
97def3c104
install: better error when using API and --HEAD.
...
- Tell people what to do to resolve this
- Tweak the instruction ordering to be consistent elsewhere
2023-01-26 11:08:56 +00:00
Mike McQuaid
9c0708f2b5
Merge branch 'master' into add-dry-run-option-to-brew-install
2022-10-03 10:10:58 +01:00
Bo Anderson
9091ac0dad
Create GCC and glibc symlinks after install is complete
...
Fixes #13836 .
2022-09-09 21:24:45 +01:00
hyuraku
5491f7b1bd
share Install.print_dry_run_dependencies
2022-09-03 16:01:55 +09:00
hyuraku
374dd3dea2
repair if syntax and remove useless line
2022-08-27 22:29:07 +09:00
hyuraku
b61ae59421
repair syntax
2022-08-19 21:43:57 +09:00
hyuraku
4bbcab235b
change local variable
2022-08-19 20:08:38 +09:00
hyuraku
1bfcf314ac
repair style
2022-08-18 00:16:11 +09:00
hyuraku
66817c0c32
repair how to show formula to be installed
2022-08-17 22:14:20 +09:00
hyuraku
634fcad1b2
add dry-run option to formula#install
2022-08-16 21:01:07 +09:00
Lukas Oberhuber
d195f22522
Connecting up --debug-symbols
flag
...
This connects the calling of dsymutil and the retention of temporary
files. Still need to connect compilation to flag.
2022-07-26 12:15:53 +01:00
Carlo Cabrera
db648bcded
Merge pull request #12717 from carlocab/install-pin
...
install: respect pins when auto-upgrading
2022-01-14 01:06:38 +08:00
Carlo Cabrera
0021a53713
Fix brew style
2022-01-14 00:19:14 +08:00
Carlo Cabrera
022c5dfad0
Suggest brew unpin
if formula is pinned
...
This will help users avoid the error where `brew` refuses to upgrade
because the formula is pinned.
2022-01-14 00:09:51 +08:00
Carlo Cabrera
dd551a8060
install: respect pins when auto-upgrading
...
Closes #12716 .
2022-01-13 23:57:51 +08:00
Bob Lail
9b678c365b
Add flag --overwrite
to brew install
to govern the keg-linking step
...
Allows you to avoid the `Keg::ConflictError` recommending that you invoke `brew link --overwrite` in scenarios when you know that that's how you'd proceed anyway.
2022-01-10 14:23:33 -06:00
Mike McQuaid
11c5f8f05a
Improve discovery of some environment variables
...
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:
- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents
For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves.
2021-11-25 09:10:59 +00:00
Bo Anderson
9d5f4e8ed5
Fix undefined method error following CannotInstallFormulaError
2021-09-14 10:43:38 +01:00
fn ⌃ ⌥
5a94c43b3f
install, upgrade: fix installation attempt check
2021-09-13 10:28:13 -07:00
fn ⌃ ⌥
15e8852128
upgrade: add install_formula helper method
2021-09-10 08:39:36 -07:00
fn ⌃ ⌥
0c3afa5837
install, upgrade: run formula installer prelude before fetching
2021-09-10 06:15:55 -07:00
fn ⌃ ⌥
a96e286400
install: check if formula is already linked before fetching
2021-09-10 06:15:47 -07:00
fn ⌃ ⌥
eec60c4086
install, upgrade: don't print message if formula already installed
2021-09-09 10:54:18 -07:00
FnControlOption
cf2800afec
install: fetch all formulae before install
2021-09-01 22:42:20 -07:00
Connor Mann
79f9a9aac6
Move install
-specific code to install.rb
2021-06-15 15:59:00 -04:00
Connor Mann
13e1457249
Consolidate shared install and upgrade logic
2021-06-15 10:11:40 -04:00
Connor Mann
11d030e897
Update Library/Homebrew/install.rb
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-15 09:38:08 -04:00
Connor Mann
f0601e91bc
Change outdated message
2021-06-14 11:43:44 -04:00
Connor Mann
c1ad3d09b8
Add present?
check to linked_kegs
2021-06-14 11:42:49 -04:00
Connor Mann
4bbfe351e2
Fix keg re-linking logic for failed upgrades
2021-06-14 11:31:55 -04:00
Connor Mann
48641f3a3a
Fix method typo
2021-06-14 11:28:16 -04:00
Connor Mann
4b59636ae8
Merge branch 'master' into install-upgrade-outdated
2021-06-14 11:16:20 -04:00
Rylan Polster
e3cf41e3ab
Add missing negations
2021-06-10 11:47:42 -04:00
Rylan Polster
30be3e2340
Refactor install methods
2021-06-10 10:53:41 -04:00
Mike McQuaid
786a06d3ed
Library/Homebrew/install: fix whitespace.
2021-01-26 10:21:55 +00:00
David
db52d6a725
Update Library/Homebrew/install.rb
...
Incorporate suggested wording
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-01-25 10:39:29 -07:00