Rylan Polster
fa45209f09
Fix sharded API structure to match existing API
2025-06-03 16:58:47 -04:00
Rylan Polster
c03f70f1dc
Refactor OnSystem
and SimulateSystem
bottle tag handling
2025-06-03 11:57:17 -04:00
Rylan Polster
0f03757e8f
Shard JSON API by OS/Arch combination
2025-06-02 23:06:02 -04:00
Eric Knibbe
2b8d104281
dev-cmd/generate-*-api: simulate latest macOS
2025-05-15 11:06:24 -04:00
apainintheneck
042d6cc97e
Remove JSON v3 cask logic
2025-02-05 23:32:32 -08:00
Bo Anderson
337ac07980
dev-cmd/generate-cask-api: fix handling of +
characters
2024-09-16 16:25:19 +01:00
Issy Long
944790acfe
dev-cmd/generate-cask-api: Bump to Sorbet typed: strict
2024-06-30 19:27:35 +01:00
Eric Knibbe
3d985d082e
cmd/generate-cask-api: include cask renames
2024-05-03 19:16:32 -04:00
Bo Anderson
073e35d4ba
dev-cmd/generate-*-api: ensure title is a string
2024-04-10 04:51:23 +01:00
Douglas Eichelberger
c50fb2dbd2
Remove redundant cli/parser requires
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
dc062bea52
Port Homebrew::DevCmd::PrPull
2024-03-22 09:33:28 -07:00
Douglas Eichelberger
afceaec076
Port Homebrew::DevCmd::GenerateCaskApi
2024-03-21 19:04:30 -07:00
apainintheneck
e0cea903ec
s/to_api_hash/to_internal_api_hash/
2024-03-07 20:29:58 -08:00
apainintheneck
12d5a40262
dev-cmd/generate-cask-api: start generating cask internal JSON v3
...
This adds a new file to the output of `brew generate-cask-api` which
represents the new internal JSON v3 file. It involves removing
a bunch of unneeded hash keys while removing blank ones as well.
I've made some slight changes to the cask loader as well but more
might be necessary before this starts loading things correctly.
The full loader code will be added in a separate PR.
2024-03-07 20:29:58 -08:00
Eric Knibbe
2f79bdd257
global: add HOMEBREW_API_WWW
2023-09-11 02:26:37 -04:00
Douglas Eichelberger
33d9dc63b0
Fix type errors when HOMEBREW_SORBET_RUNTIME=1
2023-07-18 10:22:51 -07: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
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
ba02c669e1
Introduce CoreCaskTap class
2023-07-13 20:33:26 +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
bb7aef85db
Migrate remaining no-api commands to new scoped system
2023-06-22 17:11:20 +01: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
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Bo Anderson
1dd3d5cc03
generate-*-api: better errors
2023-02-24 16:57:20 +00:00
Mike McQuaid
2f47403f8c
dev-cmd/generate-*-api: don't use same constant name.
...
Otherwise Ruby warns.
2023-02-23 09:09:54 +00:00
Mike McQuaid
9c9213aabd
Apply suggestions from code review
...
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-02-23 08:45:56 +00:00
Mike McQuaid
8d02143c2b
Add generate-{cask,formula}-api commands
...
These replace the similar scripts in formulae.brew.sh.
Part of #14730 .
2023-02-22 15:33:16 +00:00