29882 Commits

Author SHA1 Message Date
Mike McQuaid
9be410b348
Merge pull request #12465 from XuehaiPan/bat-back-to-cat
dev-cmd/cat: auto-install `bat` when running `brew cat ...` with `HOMEBREW_BAT` set
2021-11-23 14:10:28 +00:00
XuehaiPan
c6719e5854 dev-cmd/cat: require "formula" only when necessary 2021-11-23 21:35:44 +08:00
Mike McQuaid
1564d76865
Merge pull request #12468 from Homebrew/update-man-completions
Update maintainers, manpage and completions.
2021-11-23 12:20:38 +00:00
BrewTestBot
6e523bb224
Update maintainers, manpage and completions.
Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-man-completions.yml) workflow.
2021-11-23 11:57:59 +00:00
Mike McQuaid
aa997f9af5
Merge pull request #12466 from Homebrew/dependabot/bundler/docs/github-pages-222
build(deps-dev): bump github-pages from 221 to 222 in /docs
2021-11-23 11:55:58 +00:00
Mike McQuaid
96f03339fc
Merge pull request #12467 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9363
build(deps-dev): bump sorbet from 0.5.9358 to 0.5.9363 in /Library/Homebrew
2021-11-23 11:55:35 +00:00
Mike McQuaid
5c0d0effe3
Merge pull request #12459 from FnControlOption/tap-new
tap-new: add `--github-packages` switch
2021-11-23 11:55:22 +00:00
XuehaiPan
687dbe5268 dev-cmd/cat: auto-install bat when running brew cat ... with HOMEBREW_BAT set 2021-11-23 15:20:57 +08:00
fn ⌃ ⌥
5657e109af Apply suggestions from code review 2021-11-22 16:34:47 -08:00
Carlo Cabrera
1a722a086b
Merge pull request #12345 from alebcay/std_go_args-output-name
formula: allow optional output path in std_go_args
2021-11-23 02:13:14 +08:00
BrewTestBot
1afe8b467e
brew vendor-gems: commit updates. 2021-11-22 18:09:19 +00:00
dependabot[bot]
2d40c4ecf6
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9358 to 0.5.9363.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 18:04:27 +00:00
dependabot[bot]
97669a6523
build(deps-dev): bump github-pages from 221 to 222 in /docs
Bumps [github-pages](https://github.com/github/pages-gem) from 221 to 222.
- [Release notes](https://github.com/github/pages-gem/releases)
- [Commits](https://github.com/github/pages-gem/compare/v221...v222)

---
updated-dependencies:
- dependency-name: github-pages
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 18:01:54 +00:00
Mike McQuaid
354718c40a
Merge pull request #12464 from Homebrew/update-man-completions
Update maintainers, manpage and completions.
3.3.5
2021-11-22 12:54:47 +00:00
BrewTestBot
69edde72ea
Update maintainers, manpage and completions.
Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-man-completions.yml) workflow.
2021-11-22 12:28:54 +00:00
Mike McQuaid
591c67f4e3
Merge pull request #12453 from FnControlOption/extract
extract: remove bottle blocks
2021-11-22 12:26:55 +00:00
Mike McQuaid
ef4e329ce4
Merge pull request #12457 from FnControlOption/pr-upload
pr-upload: deprecate `--github-org=`
2021-11-22 12:26:23 +00:00
Mike McQuaid
a8429df637
Merge pull request #12458 from FnControlOption/patch-11
bump-cask-pr: replace `--write` with `--write-only` in help text
2021-11-22 12:24:18 +00:00
Mike McQuaid
2a7c955090
Merge pull request #12449 from samford/livecheck/allow-passing-regex-in-all-strategy-blocks
Allow passing a regex in all livecheck `strategy` blocks
2021-11-22 12:12:35 +00:00
Carlo Cabrera
001bd96fa3
Merge pull request #12454 from carlocab/strict-linkage
linkage: add `--strict` flag to detect opportunistic linkage
2021-11-22 20:02:28 +08:00
Caleb Xu
97bc320836
std_go_args: accept ldflags as string or Array(string) 2021-11-21 07:02:23 -05:00
Caleb Xu
3f357861aa
formula: allow optional output path in std_go_args 2021-11-21 07:02:22 -05:00
Nanda H Krishna
f9105f6142
Merge pull request #12456 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9358
build(deps-dev): bump sorbet from 0.5.9351 to 0.5.9358 in /Library/Homebrew
2021-11-21 00:09:22 -05:00
Sam Ford
f8ded0a435
PageMatch: Enforce requirements in #find_versions
This aligns `PageMatch` with how cask strategies handle requirements
in their `#find_versions` methods. This moves related logic from
`Livecheck#latest_version` into the `PageMatch` strategy, which feels
a bit more appropriate.
2021-11-20 00:39:00 -05:00
Sam Ford
085827f605
Handle variable strategy block arguments
There are times where a regex isn't needed in a `strategy` block and
these changes explicitly handle that situation.

This allows the Symbol Proc format used in some `Sparkle` `livecheck`
blocks (e.g., `strategy :sparkle, &:version`) to continue working
instead of failing with a "wrong number of arguments (given 1,
expected 0)" error. This error would occur because a Symbol Proc only
only expects one argument (e.g., an `Item`, not an `Item` and a
regex/nil).

There's an argument to be made for avoiding the Symbol Proc format
for `strategy` blocks but I haven't found a way of selectively
disabling the Style/SymbolProc cop only for a `strategy` DSL method
call. That is to say, if we don't use the Symbol Proc format, `brew
style` will give a "Pass &:version as an argument to strategy instead
of a block." offense.

Besides that, this also replaces the `block` type signatures in
livecheck strategies with `T.untyped`. Sorbet doesn't know how to
handle a `Proc` with a variable number of arguments and can't be
taught how (i.e., `T.any` with a `Proc` signature for each variation
doesn't work). The aforementioned changes cause Sorbet to complain
about there being both too many and too few arguments, so the only
way to win is not to play the game. Hopefully we can restore the
`block` type signatures in the future (if upstream resolves this
years-old issue) but `T.untyped` seems to be our only option for now.
2021-11-19 23:58:55 -05:00
Sam Ford
e73524b093
livecheck: Fix debug strategy info printing
The `ExtractPlist` strategy doesn't return certain values (e.g.,
`:url`), so it's necessary to also ensure these values are present
before printing related debug info. Without these changes, we end up
printing info for a blank value (e.g., "URL (strategy):").
2021-11-19 23:58:55 -05:00
Sam Ford
9e8900fb6e
Allow regex to be passed into all strategy blocks
This modifies cask-related livecheck strategies to allow passing a
regex into a `strategy` block, when appropriate. These strategies
were outliers that explicitly rejected a regex even if a `strategy`
block was used, forcing any regex to be inlined in the `strategy`
block (instead of being defined using `#regex`).

With these changes, all `strategy` blocks will be able to accept a
regex, further simplifying the mental model. This also helps to
better align the various `find_versions` and `versions_from_*`
methods across strategies.
2021-11-19 23:58:54 -05:00
fn ⌃ ⌥
56724da0b7 tap-new: add --github-packages switch 2021-11-19 12:35:50 -08:00
fn ⌃ ⌥
c0ca9275f9
bump-cask-pr: replace --write with --write-only in help text 2021-11-19 12:14:47 -08:00
fn ⌃ ⌥
93b8fa7838 pr-upload: deprecate --github-org= 2021-11-19 11:48:23 -08:00
BrewTestBot
a7c2b2273a
brew vendor-gems: commit updates. 2021-11-19 18:59:53 +00:00
dependabot[bot]
2a5288e297
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9351 to 0.5.9358.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-19 18:55:39 +00:00
fn ⌃ ⌥
8f96ba3c1e extract: remove bottle blocks 2021-11-19 10:45:30 -08:00
Alexander Bayandin
27a76295a4
Merge pull request #12279 from bayandin/synced-versions-formulae
formula_auditor: add audit for formulae with synced versions
2021-11-19 12:24:33 +00:00
Mike McQuaid
7241f8db2e
Merge pull request #12450 from scpeters/unbottled_taps
dev-cmd/unbottled: don't skip non-core formulae
2021-11-19 12:20:20 +00:00
Mike McQuaid
a0660e9c1b
Merge pull request #12448 from FnControlOption/renames
Print warning if given old short name of renamed formula
2021-11-19 12:20:12 +00:00
Mike McQuaid
a36cfa2c71
Merge pull request #12452 from FnControlOption/switch
Add missing `--formulae/--casks` aliases for `--formula/--cask`
2021-11-19 12:19:18 +00:00
Carlo Cabrera
601bf83fee
linkage: add --strict flag to detect opportunistic linkage
There was a previous discussion about making `brew linkage --test` fail
for unrequested dependencies (#9172). I'm not sure what the outcome of
that was, but it still seems like a good idea to try to help us find
cases of opportunistic linkage as they happen rather than when they
cause CI failures in another PR sometime later.

Let's do this by adding a `--strict` flag to `brew linkage --test`. My
intention is for `brew linkage --test --strict` failures to be warnings
rather than errors in CI, which should mitigate some of the concerns
about doing this that were raised in #9172.
2021-11-19 18:14:38 +08:00
fn ⌃ ⌥
b766799d95 Add missing --formulae/--casks aliases for --formula/--cask 2021-11-18 12:41:03 -08:00
Nanda H Krishna
faaa980860
Merge pull request #12451 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.9351
build(deps-dev): bump sorbet from 0.5.9338 to 0.5.9351 in /Library/Homebrew
2021-11-18 14:15:49 -05:00
BrewTestBot
dde131ace6
brew vendor-gems: commit updates. 2021-11-18 18:11:53 +00:00
dependabot[bot]
a45b15ce23
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.9338 to 0.5.9351.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 18:05:20 +00:00
fn ⌃ ⌥
55fc6e1c9b migrate: load specified formulae by keg to avoid rename warning 2021-11-18 09:47:25 -08:00
Steve Peters
aa4e39785c
dev-cmd/unbottled: don't skip non-core formulae
Related to Homebrew/homebrew-test-bot#705

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
2021-11-18 08:13:44 -08:00
Mike McQuaid
1e37a188cb
Merge pull request #12444 from iMichka/docs
docs/Acceptable-Formulae: specify the list of supported platforms
2021-11-18 12:14:44 +00:00
Mike McQuaid
f05ecd647d
Merge pull request #12435 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.23.0
build(deps): bump rubocop from 1.22.0 to 1.23.0 in /Library/Homebrew
2021-11-18 12:09:15 +00:00
Michka Popoff
c4f57af057
docs/Acceptable-Formulae: specifiy the list of supported platforms 2021-11-18 11:49:55 +00:00
Mike McQuaid
a2e2ea4b51
.rubocop.yml: allow OpenStruct. 2021-11-18 11:48:30 +00:00
BrewTestBot
68f1685b97
Update RBI files for rubocop. 2021-11-18 11:48:30 +00:00
BrewTestBot
7e6c6fee33
brew vendor-gems: commit updates. 2021-11-18 11:48:30 +00:00