Merge pull request #20045 from Homebrew/fix-sharded-api

Fix sharded API structure to match existing API
This commit is contained in:
Mike McQuaid 2025-06-04 07:58:26 +00:00 committed by GitHub
commit 68ef29fb5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ module Homebrew
File.write("_data/cask_canonical.json", "#{canonical_json}\n") unless args.dry_run?
OnSystem::VALID_OS_ARCH_TAGS.each do |bottle_tag|
variation_casks = all_casks.transform_values do |cask|
variation_casks = all_casks.map do |_, cask|
Homebrew::API.merge_variations(cask, bottle_tag:)
end

View File

@ -69,7 +69,7 @@ module Homebrew
File.write("_data/formula_canonical.json", "#{canonical_json}\n") unless args.dry_run?
OnSystem::VALID_OS_ARCH_TAGS.each do |bottle_tag|
variation_formulae = all_formulae.transform_values do |formula|
variation_formulae = all_formulae.map do |_, formula|
Homebrew::API.merge_variations(formula, bottle_tag:)
end