2999 Commits

Author SHA1 Message Date
Douglas Eichelberger
33d9dc63b0 Fix type errors when HOMEBREW_SORBET_RUNTIME=1 2023-07-18 10:22:51 -07:00
Mike McQuaid
4017034c0a
Merge pull request #15704 from MikeMcQuaid/generate_api_safer
dev-cmd/generate-*-api: be a bit safer.
2023-07-18 13:12:31 +01:00
Mike McQuaid
e1a7afb3cf
dev-cmd/generate-*-api: be a bit safer.
- also try generating formula API on macOS
- pull more logic out of `unless args.dry_run?` in case it fails
2023-07-18 12:57:09 +01:00
Mike McQuaid
1db83cd4a9
dev-cmd/bump-cask-pr: fix install_bundler_gems! logic. 2023-07-18 12:18:19 +01:00
Mike McQuaid
3247b2ecfa
dev-cmd/bump-*-pr: avoid installing gems when unneeded.
Fixes #15686
2023-07-18 10:48:11 +01:00
Mike McQuaid
fb35578c54
Merge pull request #15676 from Bo98/tap-fixes
Introduce CoreCaskTap class and fix cases of core taps were being unnecessarily installed
2023-07-17 19:22:22 +01:00
Bo Anderson
5aad83ce1b
generate-*-api: fix on-disk tap migrations not being used 2023-07-14 02:04:14 +01:00
Bo Anderson
beaa6c32a0
Fix cases of core taps being unnecessarily installed 2023-07-13 20:33:31 +01:00
Bo Anderson
ba02c669e1
Introduce CoreCaskTap class 2023-07-13 20:33:26 +01:00
Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
The next release after this is merged will be 4.1.0.

Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Mike McQuaid
9241db1f78
Merge pull request #15628 from MikeMcQuaid/generate_tap_migrations
dev-cmd/generate-*-api: generate tap migrations JSON.
2023-07-05 14:44:43 +01:00
Mike McQuaid
3f3d587665
dev-cmd/generate-*-api: generate tap migrations JSON.
These will be consumed later.

Part of https://github.com/Homebrew/brew/issues/14897
2023-07-05 14:01:09 +01:00
Bo Anderson
367f716a08
dev-cmd/audit: don't audit every tap with given named packages 2023-07-04 16:08:04 +01:00
Carlo Cabrera
bc6e88d45c
pr-publish: request a large runner for appropriately labelled PRs
This will make it easier to merge PRs that require the large runner to
upload the built bottles.
2023-06-27 20:06:35 +08:00
Alexander Bayandin
baf099f804
Use taps names for error messages for consistency
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-06-23 12:58:53 +01:00
Alexander Bayandin
8d18680cba
cmd/create: fix tap name for TapUnavailableError 2023-06-23 11:12:02 +00:00
Alexander Bayandin
e36790ab5c
cmd/edit: fix error message for formula 2023-06-23 11:11:31 +00:00
Bo Anderson
bb7aef85db
Migrate remaining no-api commands to new scoped system 2023-06-22 17:11:20 +01:00
Bo Anderson
e2e80d77a3
dev-cmd/test: use localised no-api scoping 2023-06-22 01:57:35 +01:00
Bo Anderson
68289f1165
Add without_api specifier for CLI named args 2023-06-22 01:57:28 +01:00
Carlo Cabrera
c5fe2a3559
formula_auditor: adjust deps audit for a staging branch
1. Adjust audit so that it ignore conflicts only for `brew audit --tap`.
   This is useful because it prevents us from trying to migrate a formula
   to `openssl@3` before all its dependencies have also been migrated.
2. Exempt only PRs that target a branch called
   `openssl-migration-staging`.
2023-06-20 22:37:06 +08:00
Carlo Cabrera
909b8d078e
dev-cmd/update-maintainers: write JSON of maintainers
This will be needed for Homebrew/homebrew-test-bot#933.
2023-05-29 21:30:47 +08:00
Markus Reiter
7cc1b6191e
Clean up brew audit output. 2023-05-19 19:40:37 +02:00
Markus Reiter
e9bfcb9296
Merge pull request #15225 from reitermarkus/audit-os-arch
Add `--os=all` and `--arch=all` options for `brew audit`.
2023-05-19 15:03:32 +02:00
Carlo Cabrera
d7870bb24d
Move artifact download code to separate file
This will help avoid mutually-recursive `require`s.
2023-05-17 23:48:58 +08:00
Markus Reiter
486c3765ce
Add --os=all and --arch=all options. 2023-05-17 15:26:46 +02:00
Carlo Cabrera
d372eb86ca
utils/github: remove unnecessary chdir call
The only existing caller already has the requested directory as the
workign directory, so this is currently not needed.
2023-05-17 21:11:15 +08:00
Carlo Cabrera
05337cbb79
Refactor GitHub artifact downloads out of dev-cmd/pr-pull
I plan to use these in `test-bot` to download built bottles from
previous CI runs.
2023-05-17 21:11:15 +08:00
apainintheneck
358a2ce788 dev-cmd/generate-*-api: add dry run option
There are two reasons for this:
- Makes it easier to run this command as a sanity check without
  having to create a temporary directory
- Is somewhat faster since you don't have to write thousands of files
2023-05-15 18:29:49 -07:00
Markus Reiter
0d56b97b07
Add SimulateSystem::with. 2023-05-14 01:45:04 +02:00
Markus Reiter
c5926241a8
Don't fail auditing empty tap. 2023-05-11 21:52:36 +02:00
Markus Reiter
8274920217
Rename OS::Mac::Version to MacOSVersion. 2023-05-09 05:08:38 +02:00
Dawid Dziurla
a341f4346c
bump-formula-pr: fix method argument type 2023-05-05 13:51:14 +02:00
Carlo Cabrera
50df7fab28
determine-test-runners: add debug output
The extra timeout on Intel Big Sur doesn't seem to be set, so I'm adding
this so I can have a closer look.
2023-04-29 11:03:27 +08:00
Bo Anderson
44f058edb5
Refactor formula, cask and Ruby source downloads to use shared code 2023-04-27 23:23:07 +01:00
Razvan Azamfirei
33ddc2d818
modify bump logic 2023-04-26 19:53:10 -04:00
Markus Reiter
9f21d378cd
Merge pull request #15310 from EricFromCanada/bump-cask-url-string
bump-cask-pr: convert URL back to string
2023-04-26 13:14:43 +02:00
Eric Knibbe
5f6b626880
bump-cask-pr: convert URL back to string 2023-04-25 18:11:36 -04:00
Douglas Eichelberger
08af78a2a5 brew style --fix 2023-04-25 09:26:24 -07:00
Mike McQuaid
67c118009b
Merge pull request #15308 from ZhongRuoyu/workflows-macos-13
workflows: run on `macos-13`
2023-04-25 15:10:37 +01:00
Douglas Eichelberger
24cf6076e8 brew style --fix 2023-04-24 20:42:39 -07:00
Ruoyu Zhong
6eaa0b2940
dev-cmd/tap-new: run brew test-bot on macos-13 2023-04-25 11:24:00 +08:00
Carlo Cabrera
4f179c54a3
Merge pull request #15300 from carlocab/git-repo-str
git_repository: implement `#to_s`
2023-04-24 22:48:47 +08:00
Carlo Cabrera
2f37877858
git_repository: implement #to_s instead 2023-04-24 22:34:09 +08:00
Douglas Eichelberger
f52cbbb9da
Vendor mechanize gem outside Gemfile
We only need a single file and it avoids pulling in e.g. `nokogiri`
which is vulnerable.

Allow updating it using `brew vendor-gems`.
2023-04-24 14:03:55 +01:00
Carlo Cabrera
f4692ddb40
dev-cmd/audit: fix audit annotations
Emitting annotations currently produces:

    Error: no implicit conversion of Symbol into Integer

The issue is that `problem` is an `Array` of problems which we need to
handle individually.
2023-04-22 15:13:35 +08:00
Ruoyu Zhong
209a9fe2ff
dev-cmd/pr-automerge: skip PRs with pre-release label
PRs with the `pre-release` label are always not ready for merge, so
let's skip them by default.

See also: Homebrew/homebrew-core#128906.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-04-21 03:30:10 +08:00
Mike McQuaid
71de574285
Merge pull request #15269 from MikeMcQuaid/audit_no_warnings
dev-cmd/audit: remove unused warnings key.
2023-04-19 16:22:13 +01:00
Mike McQuaid
2ca3f73078
dev-cmd/audit: remove unused warnings key.
These are now all errors so the code can be simplified.
2023-04-19 16:09:45 +01:00
Mike McQuaid
d0d9894963
Merge pull request #15266 from razvanazamfirei/bump-bug-fix
Fix bump-cask-pr handling of sha256 :no_check
2023-04-19 15:56:41 +01:00