Merge pull request #17225 from Homebrew/generate-cask-renames

cmd/generate-cask-api: include cask renames
This commit is contained in:
Eric Knibbe 2024-05-03 22:24:24 -04:00 committed by GitHub
commit 3cea82ce1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,8 @@ module Homebrew
homebrew_cask_tap_json = JSON.generate(tap.to_internal_api_hash) homebrew_cask_tap_json = JSON.generate(tap.to_internal_api_hash)
File.write("api/internal/v3/homebrew-cask.json", homebrew_cask_tap_json) unless args.dry_run? File.write("api/internal/v3/homebrew-cask.json", homebrew_cask_tap_json) unless args.dry_run?
canonical_json = JSON.pretty_generate(tap.cask_renames)
File.write("_data/cask_canonical.json", "#{canonical_json}\n") unless args.dry_run?
end end
end end