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