30198 Commits

Author SHA1 Message Date
Issy Long
a3932b44c0
Merge pull request #16899 from Homebrew/tapioca-compiler-for-tty-rbi
Convert the `utils/tty` RBI generator to a Tapioca compiler
2024-03-30 18:10:41 +00:00
Issy Long
db39e939b0
Apply suggestions from code review 2024-03-30 18:00:39 +00:00
Bo Anderson
dd382487c7
Sort kegs based on version scheme 2024-03-29 23:33:41 +00:00
BrewTestBot
de0cc1a9d3
brew vendor-gems: commit updates. 2024-03-29 15:47:47 +00:00
dependabot[bot]
e23c0cc088
build(deps): bump sorbet-runtime and sorbet-static-and-runtime
Bumps [sorbet-runtime](https://github.com/sorbet/sorbet) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

Updates `sorbet-runtime` from 0.5.11316 to 0.5.11318
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-static-and-runtime` from 0.5.11316 to 0.5.11318
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-29 15:46:53 +00:00
Mike McQuaid
4501e38bd8
Merge pull request #16966 from cho-m/keg-postgresql-mkpath
keg: mkpath while linking `{include,lib,share}/postgresql@X`
2024-03-29 08:23:28 +00:00
Mike McQuaid
ec74bad6d3
Merge pull request #16962 from Homebrew/bump_15_prs
dev-cmd/bump*: limit the number of open PRs to 15.
2024-03-29 08:16:39 +00:00
Issy Long
e4a1f3319c
Tty methods are class methods 2024-03-29 00:41:56 +00:00
Issy Long
bbf5825d54
Appease RuboCop 2024-03-29 00:41:56 +00:00
Douglas Eichelberger
769547e7e3
Use create_module instead 2024-03-29 00:41:56 +00:00
Issy Long
05b716613b
Convert the utils/tty RBI generator to a Tapioca compiler
- The preferred way of doing RBI generation is via Tapioca. So I am
  trying to stop being intimidated by it, by learning how it works.
- This is very WIP still, currently failing with the following message
  because the `module` name is missing in the generated RBI file.

```
There are parse errors in the generated RBI files.

Errors:
  sorbet/rbi/dsl/tty.rbi:8: unexpected token tNL (2001)
  sorbet/rbi/dsl/tty.rbi:64: unexpected token "end" (2001)
```
2024-03-29 00:41:56 +00:00
Michael Cho
babb352aef
keg: mkpath while linking {include,lib,share}/postgresql@X
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-28 17:26:58 -04:00
BrewTestBot
eee0adb928
brew vendor-gems: commit updates. 2024-03-28 16:32:03 +00:00
dependabot[bot]
82751544fb
build(deps): bump sorbet-static-and-runtime and sorbet-runtime
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) and [sorbet-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

Updates `sorbet-static-and-runtime` from 0.5.11305 to 0.5.11316
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-runtime` from 0.5.11305 to 0.5.11316
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-28 16:31:03 +00:00
Mike McQuaid
0f732266c8
Merge pull request #16964 from Bo98/ruby-stdin-fix
Fix setup-ruby/rubocop issues when euid != uid
2024-03-28 15:50:22 +00:00
Bo Anderson
2f05b47242
Fix setup-ruby/rubocop issues when euid != uid 2024-03-28 15:39:07 +00:00
Mike McQuaid
b3bf91acec
utils/github: fix tap logic.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2024-03-28 12:30:01 +00:00
Mike McQuaid
fe16b14479
dev-cmd/bump*: limit the number of open PRs to 15.
Don't let users open more than 15 PRs at a time. We have other tooling
to nudge them to not do this but let's put it in the worst offenders:
the `bump*` commands.
2024-03-28 11:56:25 +00:00
Mike McQuaid
bb66f87be5
Merge pull request #16959 from nwhetsell/puts-version-upgrade
Output version upgrade info using `puts`
2024-03-28 08:28:59 +00:00
Bevan Kay
3c0efa845a
deprecate_disable: add cask deprecation reason 2024-03-28 10:47:45 +11:00
Michael Cho
4fa7264a52
Merge pull request #16951 from cho-m/unpack-crate
unpack_strategy: allow unpacking .crate (as a gzipped tar)
2024-03-27 18:00:40 -04:00
Nate Whetsell
ed3072646f Output version upgrade info using puts 2024-03-27 17:44:09 -04:00
BrewTestBot
a55fe01bae
Update RBI files for spoom.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-03-27 19:23:00 +00:00
BrewTestBot
f991e03f9f
brew vendor-gems: commit updates. 2024-03-27 19:22:42 +00:00
dependabot[bot]
7f9e9393b8
build(deps-dev): bump spoom from 1.2.4 to 1.3.0 in /Library/Homebrew
Bumps [spoom](https://github.com/Shopify/spoom) from 1.2.4 to 1.3.0.
- [Release notes](https://github.com/Shopify/spoom/releases)
- [Commits](https://github.com/Shopify/spoom/compare/v1.2.4...v1.3.0)

---
updated-dependencies:
- dependency-name: spoom
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 19:21:49 +00:00
BrewTestBot
e5fb1c9e1b
Update RBI files for tapioca.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-03-27 17:35:01 +00:00
BrewTestBot
f4b02528cd
brew vendor-gems: commit updates. 2024-03-27 17:34:45 +00:00
dependabot[bot]
d86362af7f
build(deps-dev): bump tapioca from 0.13.0 to 0.13.1 in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.13.0...v0.13.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 17:33:50 +00:00
Bo Anderson
28a80a6ebf
Avoid writable_real? 2024-03-27 06:26:32 +00:00
Bo Anderson
a1cb45f3fd
Merge pull request #16948 from Homebrew/privileged-bash
Support bash in privileged mode
2024-03-27 04:55:20 +00:00
Bo Anderson
636d883008
Support bash in privileged mode 2024-03-27 04:40:44 +00:00
Eric Knibbe
6eb589f3ec
Merge pull request #16952 from Homebrew/nil-runtime-deps 2024-03-26 19:00:46 -04:00
BrewTestBot
0b736982f0
Update RBI files for tapioca.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-03-26 18:05:57 +00:00
BrewTestBot
bd802a29dc
brew vendor-gems: commit updates. 2024-03-26 18:05:41 +00:00
dependabot[bot]
83fc06cd63
build(deps-dev): bump tapioca from 0.12.0 to 0.13.0 in /Library/Homebrew
Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/Shopify/tapioca/releases)
- [Commits](https://github.com/Shopify/tapioca/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: tapioca
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 18:04:43 +00:00
Eric Knibbe
f481f1fa92
formula_installer: handle nil runtime dependencies 2024-03-26 11:36:47 -04:00
Michael Cho
7b46378a6c
unpack_strategy: allow unpacking .crate (as a gzipped tar)
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-26 11:05:10 -04:00
Michael Cho
f432a7f401
formula_cellar_checks: fix type from #16946
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-25 15:55:37 -04:00
BrewTestBot
cea0746fdc
Update RBI files for parallel_tests.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-03-25 18:11:01 +00:00
BrewTestBot
0d1859e8f7
brew vendor-gems: commit updates. 2024-03-25 18:10:49 +00:00
dependabot[bot]
10a2dd4797
build(deps-dev): bump parallel_tests in /Library/Homebrew
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 4.5.2 to 4.6.0.
- [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md)
- [Commits](https://github.com/grosser/parallel_tests/compare/v4.5.2...v4.6.0)

---
updated-dependencies:
- dependency-name: parallel_tests
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 18:09:59 +00:00
Carlo Cabrera
966f819deb
Merge pull request #16925 from gibfahn/write_only_github 2024-03-25 19:53:46 +08:00
Gibson Fahnestock
e11f797f25
bump-*-pr: handle HOMEBREW_NO_GITHUB_API=1 being set
We early return here
92a4311868/Library/Homebrew/utils/github/api.rb (L220)
, but don't then handle that through the stack.

Repro:

```console
❯ HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_GITHUB_API=1 brew bump-formula-pr --write-only --version 1.2.3 --no-audit jq
Error: undefined method `[]' for nil:NilClass
Do not report this issue until you've run `brew update` and tried again.
Warning: Removed Sorbet lines from backtrace!
/opt/homebrew/Library/Homebrew/utils/github.rb:565:in `block in fetch_pull_requests'
/opt/homebrew/Library/Homebrew/utils/github/api.rb:334:in `paginate_graphql'
/opt/homebrew/Library/Homebrew/utils/github.rb:564:in `fetch_pull_requests'
/opt/homebrew/Library/Homebrew/utils/github.rb:628:in `check_for_duplicate_pull_requests'
/opt/homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:456:in `check_open_pull_requests'
/opt/homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:135:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:89:in `<main>'
Rerun with `--verbose` to see the original backtrace
```
2024-03-25 11:11:01 +00:00
Michael Cho
e31a2b8ed7
formula_cellar_checks: add more types
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-24 19:46:57 -04:00
Michael Cho
a5160e355f
formula_cellar_checks: more granular mismatched_binary_allowlist
Add support for providing more granular glob patterns via the
mismatched_binary_allowlist.json rather than an all-or-nothing option.
This allows catching any unwanted binaries in new releases.

The glob patterns are assumed to be relative to the formula's prefix.
Patterns are matched using fnmatch with flags for:
* `File::FNM_DOTMATCH` to allow matching all files with `**/*`
* `File::FNM_EXTGLOB` to behave like `Dir.glob` for `{a,b}`
* `File::FNM_PATHNAME` to allow restricting `*` across directories

The original file format of `["<formula>"]` should behave similar to
`{"<formula>": "**/*"}`.

Also some changes to add type signature.

Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-23 23:43:09 -04:00
BrewTestBot
114ce6d125
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2024-03-23 00:18:56 +00:00
Douglas Eichelberger
4fc8260604
Merge pull request #16938 from Homebrew/ported-cmds
Convert remaining dev commands to use AbstractCommand
2024-03-22 14:11:05 -07:00
BrewTestBot
0270cb9c49
Update RBI files for sorbet-runtime-and-sorbet-static-and-runtime.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2024-03-22 16:36:22 +00:00
BrewTestBot
a250daec46
brew vendor-gems: commit updates. 2024-03-22 16:36:10 +00:00
dependabot[bot]
b25ddcbd65
build(deps): bump sorbet-runtime and sorbet-static-and-runtime
Bumps [sorbet-runtime](https://github.com/sorbet/sorbet) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

Updates `sorbet-runtime` from 0.5.11295 to 0.5.11305
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-static-and-runtime` from 0.5.11295 to 0.5.11305
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-22 16:35:11 +00:00