18520 Commits

Author SHA1 Message Date
Mike McQuaid
a1dc809f5b
bin/brew: don't filter GitHub Actions variables. 2020-08-07 10:19:00 +01:00
dependabot-preview[bot]
03d07beb8c
build(deps): bump codecov from 0.2.3 to 0.2.5 in /Library/Homebrew
Bumps [codecov](https://github.com/codecov/codecov-ruby) from 0.2.3 to 0.2.5.
- [Release notes](https://github.com/codecov/codecov-ruby/releases)
- [Changelog](https://github.com/codecov/codecov-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-ruby/compare/v0.2.3...v0.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-07 10:19:00 +01:00
Mike McQuaid
3875f16782
Fix --formula and --cask flags.
These were all made `--formulae` and `--casks` for consistency but that
doesn't behave as expected because they have special behaviours in
`args`. Instead, use the singular form everywhere.
2020-08-07 09:53:30 +01:00
Mike McQuaid
21ef9d942c
Merge pull request #8243 from claui/fix-reinstall-restore-backup
Fix “wrong number of arguments” error
2020-08-07 09:47:25 +01:00
Mike McQuaid
a19a1d377a
Merge pull request #8237 from MikeMcQuaid/more-workflows-cleanup
Cleanup more GitHub Actions usage
2020-08-07 08:53:04 +01:00
Claudia
8864287cf2
Fix “wrong number of arguments” error
This commit fixes an error introduced in 6c964d4a78, which would
surface on certain install/reinstall/upgrade failures.

Example:

```
==> Patching
patching file default_out.txt
Hunk #2 FAILED at 11.
1 out of 2 hunks FAILED -- saving rejects to file default_out.txt.rej
Error: wrong number of arguments (given 3, expected 2)
/usr/local/Homebrew/Library/Homebrew/reinstall.rb:77:in `restore_backup'
/usr/local/Homebrew/Library/Homebrew/reinstall.rb:52:in `block in reinstall_formula'
/usr/local/Homebrew/Library/Homebrew/utils.rb:377:in `ignore_interrupts'
/usr/local/Homebrew/Library/Homebrew/reinstall.rb:52:in `rescue in reinstall_formula'
/usr/local/Homebrew/Library/Homebrew/reinstall.rb:10:in `reinstall_formula'
/usr/local/Homebrew/Library/Homebrew/cmd/reinstall.rb:71:in `block in reinstall'
/usr/local/Homebrew/Library/Homebrew/cmd/reinstall.rb:65:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/reinstall.rb:65:in `reinstall'
/usr/local/Homebrew/Library/Homebrew/brew.rb:112:in `<main>'
```
2020-08-07 08:57:54 +02:00
Markus Reiter
56ed27af15
Merge pull request #8187 from reitermarkus/args-verbose-debug
Remove usages of `Homebrew.args.verbose?` and `Homebrew.args.debug?`.
2020-08-06 20:55:24 +02:00
Mike McQuaid
3e4da13934
Cleanup more GitHub Actions usage
Increase consistency between workflows, use more of our actions and
`@main`.
2020-08-06 19:35:39 +01:00
Seeker
c5d3a4a0ed
Merge pull request #8225 from SeekingMeaning/cask/create/new-style
cask/create: update template to match new style
2020-08-06 10:11:48 -07:00
Seeker
a3fa266bf4
Merge pull request #8223 from SeekingMeaning/bump-formula-pr/exact-match
bump-formula-pr: only check closed PRs for exact match
2020-08-06 09:52:01 -07:00
Seeker
3a2dc79153 cask/create: update template to match new style 2020-08-06 09:39:07 -07:00
Markus Reiter
1535892818 Don't deprecate Homebrew.args.value yet. 2020-08-06 16:28:07 +02:00
Markus Reiter
5d3881e1ab Don't skip RuboCop on non-existent ARGV methods. 2020-08-06 16:28:07 +02:00
Markus Reiter
536c963274 Deprecate global Homebrew.args. 2020-08-06 16:14:07 +02:00
Markus Reiter
6524802079 Pass remaining args to Help. 2020-08-06 16:13:14 +02:00
Markus Reiter
490e503b1b Replace Homebrew.args with Context. 2020-08-06 16:13:14 +02:00
Markus Reiter
9d6350037f Use try instead of send. 2020-08-06 16:13:14 +02:00
Markus Reiter
62671b1703 Remove wrong test. 2020-08-06 16:13:14 +02:00
Markus Reiter
bace9ecc34 Pass verbose? to Formula#verify_download_integrity. 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
Markus Reiter
5db764f3cb Pass debug? and verbose? in brew style. 2020-08-06 16:12:52 +02:00
Markus Reiter
5caafe413e Pass debug? to Formula#brew and Formula#run_test. 2020-08-06 16:12:52 +02:00
Markus Reiter
75a692d08b Make ohai, oh1 and odebug use #debug? and verbose? of the current object when possible. 2020-08-06 16:12:52 +02:00
Markus Reiter
add10377b8 Pass debug? and verbose? to Cleaner. 2020-08-06 16:12:52 +02:00
Markus Reiter
26688145f0 Don't use global Homebrew.args in brew.rb. 2020-08-06 16:12:52 +02:00
Markus Reiter
7926f7fc82 Pass args.verbose? to BuildError#dump. 2020-08-06 16:12:52 +02:00
Markus Reiter
57fa48b758 Remove unneeded call to #shutup! in spec. 2020-08-06 16:12:52 +02:00
Markus Reiter
2dce2ace2c Pass args.verbose? to Bintray. 2020-08-06 16:12:52 +02:00
Mike McQuaid
99bff13cbb
cmd/tap-info: improve comma usage.
Broken in https://github.com/Homebrew/brew/pull/8230.
2020-08-06 14:00:56 +01:00
Mike McQuaid
fb0a6338b1
Remove more tap pinning code.
This was deprecated and removed a while ago.
2020-08-06 12:24:10 +01:00
Mike McQuaid
4f502daf90
Merge pull request #8234 from Homebrew/revert-8216-deprecate-global-args
Revert "Deprecate global `Homebrew.args`."
2020-08-06 11:44:14 +01:00
Mike McQuaid
8d884e7c3b
Merge pull request #8221 from MikeMcQuaid/homebrew-actions
workflows/tests: use setup-homebrew GitHub Action.
2020-08-06 11:26:27 +01:00
Mike McQuaid
e514ec823d
Merge pull request #8232 from miccal/cask_upgrade
cask/cmd/upgrade: output cask upgrades on new line
2020-08-06 11:19:28 +01:00
Mike McQuaid
fab1009c00
Revert "Deprecate global Homebrew.args." 2020-08-06 11:09:20 +01:00
Mike McQuaid
b0d26b0dcf
workflows/tests: use setup-homebrew GitHub Action.
This allows more code reuse.
2020-08-06 10:55:18 +01:00
Mike McQuaid
c761c04e26
Merge pull request #8231 from MikeMcQuaid/audit-tap
audit: add --tap argument.
2020-08-06 10:54:14 +01:00
miccal
3b2a7a0340 cask/cmd/upgrade: output cask upgrades on new line 2020-08-06 17:25:46 +08:00
Mike McQuaid
6ea3fd0513
Merge pull request #8227 from miccal/brew_upgrade_change
cask/cmd/update: output message consistency
2020-08-06 09:56:10 +01:00
Mike McQuaid
a3b4ea0443
audit: add --tap argument.
This allows auditing a single tap (so is useful for `test-bot`).
2020-08-06 09:43:02 +01:00
Mike McQuaid
ced084bd49
Handle casks in commands more consistently.
- Ensure the usage documentation always mentions casks when appropriate
- Use --formulae or --casks consistently
- Provide --formulae and --casks switches to upgrade
- Mark more switches as conflicting
2020-08-06 09:25:45 +01:00
miccal
a4f676c556 cask/cmd/update: output message consistency 2020-08-06 16:16:44 +08:00
Seeker
c066bc154c bump-formula-pr: only check closed PRs for exact match 2020-08-05 12:52:01 -07:00
Seeker
ab9b15caeb
Merge pull request #8222 from SeekingMeaning/bump-formula-pr/fix
bump-formula-pr: fix check_all_pull_requests
2020-08-05 12:37:07 -07:00
Markus Reiter
12d8f02a33
Merge pull request #8216 from reitermarkus/deprecate-global-args
Deprecate global `Homebrew.args`.
2020-08-05 21:10:48 +02:00
Seeker
0d6bec2e0a bump-formula-pr: fix check_all_pull_requests 2020-08-05 12:07:41 -07:00
William Ma
72b0859b8c Remove invalid HOMEBREW_CASK_OPTS options 2020-08-05 12:22:12 -04:00
William Ma
907d4d7f74 Add shared methods for uninstalling, reinstalling casks 2020-08-05 11:04:40 -04:00
Markus Reiter
b1ca2f7e3c Add shared method for upgrading casks. 2020-08-05 13:55:04 +02:00
Jonathan Chang
0e8962f816
Merge pull request #8211 from jonchang/license-groups
license: permit no license for non-core taps, add exempted license groups
2020-08-05 20:55:11 +10:00