Fix sharded API structure to match existing API

This commit is contained in:
Rylan Polster 2025-06-03 16:58:47 -04:00
parent 317110f6f4
commit fa45209f09
No known key found for this signature in database
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