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
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
Douglas Eichelberger
a2492c25a2
Remove NON_PARSER_ARGS_METHODS
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
7f9748bd03
Port Homebrew::DevCmd::VendorGems
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
084f63ef22
Port Homebrew::DevCmd::UpdateTest
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
c789bf4475
Port Homebrew::DevCmd::UpdateSponsors
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
7bef4b010c
Port Homebrew::DevCmd::UpdatePythonResources
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
46d758d5cf
Port Homebrew::DevCmd::UpdateLicenseData
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
bdf8fbc1ad
Port Homebrew::DevCmd::Unpack
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
ba5f392d4c
Port Homebrew::DevCmd::Typecheck
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
445d81db2e
Port Homebrew::DevCmd::Tests
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
827e943803
Port Homebrew::DevCmd::Test
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
e0519d736a
Port Homebrew::DevCmd::TapNew
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
0d04f198d2
Port Homebrew::DevCmd::StyleCmd
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
1436b06e90
Port Homebrew::DevCmd::Sh
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
177bab38c7
Port Homebrew::DevCmd::Release
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
6d362ccb3b
Port Homebrew::DevCmd::PrUpload
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
dc062bea52
Port Homebrew::DevCmd::PrPull
2024-03-22 09:33:28 -07:00
Mike McQuaid
999ecf8b54
Merge pull request #16937 from Homebrew/ported-cmds
...
Convert next batch of dev commands to use AbstractCommand
2024-03-22 08:36:08 +00:00
Mike McQuaid
b7eed980c0
Merge pull request #16932 from samford/livecheck/update-url-rubocop
...
rubocops/livecheck: Rework LivecheckUrlProvided
2024-03-22 08:33:14 +00:00
Douglas Eichelberger
821f2a5ab5
Automagically remove -cmd suffix
2024-03-21 19:55:35 -07:00
Douglas Eichelberger
97370b4e6a
Use @min_named_args to generate argv
2024-03-21 19:48:15 -07:00
Douglas Eichelberger
26b3f30bba
Fix test
2024-03-21 19:05:26 -07:00
Douglas Eichelberger
b37274de8b
Port Homebrew::DevCmd::PrPublish
2024-03-21 19:04:31 -07:00
Douglas Eichelberger
972e853ec0
Port Homebrew::DevCmd::PrAutomerge
2024-03-21 19:04:31 -07:00
Douglas Eichelberger
d15f99514c
Port Homebrew::DevCmd::Livecheck
2024-03-21 19:04:31 -07:00
Douglas Eichelberger
5848c3d81b
Port Homebrew::DevCmd::Linkage
2024-03-21 19:04:31 -07:00
Douglas Eichelberger
afaa48bd17
Port Homebrew::DevCmd::Irb
2024-03-21 19:04:31 -07:00
Douglas Eichelberger
0e489a8c04
Port Homebrew::DevCmd::InstallBundlerGems
2024-03-21 19:04:31 -07:00
Douglas Eichelberger
485574ac98
Port Homebrew::DevCmd::GenerateManCompletions
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
7fc20640f2
Port Homebrew::DevCmd::GenerateFormulaApi
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
afceaec076
Port Homebrew::DevCmd::GenerateCaskApi
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
16b93c48e0
Port Homebrew::DevCmd::Formula
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
2f461b1b95
Port Homebrew::DevCmd::Extract
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
2cc70549d8
Port Homebrew::DevCmd::Edit
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
21c84553cf
Port Homebrew::DevCmd::DispatchBuildBottle
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
19f9c52652
Port Homebrew::DevCmd::DetermineTestRunners
2024-03-21 19:04:30 -07:00
Douglas Eichelberger
9297a850aa
Port Homebrew::DevCmd::Create
2024-03-21 19:04:30 -07:00
Bo Anderson
d704e007c7
Merge pull request #16935 from Homebrew/fix-typo-class
...
Fix typo'd command class name
2024-03-22 01:38:51 +00:00
Douglas Eichelberger
1a62a639b2
Merge pull request #16934 from cho-m/test-shell-completion-error
...
test/abstract_command_spec: rename cat to fix completions test
2024-03-21 18:17:28 -07:00