39114 Commits

Author SHA1 Message Date
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
Patrick Linnane
c3094acbaf
Merge pull request #16965 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-static-and-runtime-and-sorbet-runtime-0.5.11316 2024-03-28 09:43:20 -07: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
821f67ff6d
Merge pull request #16874 from cho-m/docs-test-resource
docs: move test-only resource into test block
2024-03-28 12:59:57 +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
Mike McQuaid
b63334c095
Merge pull request #16960 from bevanjkay/mas
deprecate_disable: add cask deprecation reason
2024-03-28 08:28:21 +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
Mike McQuaid
a0b3d21086
Merge pull request #16958 from Homebrew/dependabot/bundler/Library/Homebrew/spoom-1.3.0
build(deps-dev): bump spoom from 1.2.4 to 1.3.0 in /Library/Homebrew
2024-03-27 19:34:12 +00: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
Ruoyu Zhong
330b3cb636
Merge pull request #16957 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.13.1 2024-03-28 01:46:11 +08: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
Mike McQuaid
e698c29106
Merge pull request #16955 from Bo98/no-writable_real
Avoid `writable_real?`
2024-03-27 08:56:30 +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
Bo Anderson
c52362669a
Merge pull request #16953 from Homebrew/dependabot/github_actions/codecov/codecov-action-4.1.1
build(deps): bump codecov/codecov-action from 4.1.0 to 4.1.1
2024-03-26 22:16:54 +00:00
Bo Anderson
aad1052fd2
Merge pull request #16954 from Homebrew/dependabot/bundler/Library/Homebrew/tapioca-0.13.0
build(deps-dev): bump tapioca from 0.12.0 to 0.13.0 in /Library/Homebrew
2024-03-26 22:16:36 +00: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
dependabot[bot]
8b57e80b97
build(deps): bump codecov/codecov-action from 4.1.0 to 4.1.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](54bcd8715e...c16abc29c9)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 18:03:25 +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
Bo Anderson
a570e4da19
Merge pull request #16950 from cho-m/formula_cellar_checks-type-fix
formula_cellar_checks: fix type from #16946
2024-03-25 21:51:50 +00: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
Mike McQuaid
f2eb652751
Merge pull request #16949 from Homebrew/dependabot/bundler/Library/Homebrew/parallel_tests-4.6.0
build(deps-dev): bump parallel_tests from 4.5.2 to 4.6.0 in /Library/Homebrew
2024-03-25 19:10:24 +00: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
Mike McQuaid
446074a1ef
Merge pull request #16946 from cho-m/formula_cellar_checks-types
formula_cellar_checks: add more types
2024-03-25 08:53:06 +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
Mike McQuaid
92a4311868
Merge pull request #16944 from cho-m/mismatched_binary_allowlist-granular-globs
formula_cellar_checks: more granular mismatched_binary_allowlist
4.2.15
2024-03-24 19:14:06 +00: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
Patrick Linnane
9a1793a5ad
Merge pull request #16940 from Homebrew/sorbet-files-update 2024-03-22 19:21:43 -07: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
Patrick Linnane
e92642d530
Merge pull request #16939 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-runtime-and-sorbet-static-and-runtime-0.5.11305 2024-03-22 10:32:56 -07:00