Remove remaining formula_api_path references

This commit is contained in:
Rylan Polster 2022-12-30 02:24:12 -05:00
parent 08529c38a6
commit 68bbe03d04
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
3 changed files with 6 additions and 8 deletions

View File

@ -12,7 +12,7 @@ module Homebrew
sig { params(name: String).returns(Hash) }
def fetch(name)
Homebrew::API.fetch "#{formula_api_path}/#{name}.json"
Homebrew::API.fetch "formula/#{name}.json"
end
sig { returns(Hash) }

View File

@ -560,7 +560,6 @@ module Homebrew
"filename" => filename.url_encode,
"local_filename" => filename.to_s,
"sha256" => sha256,
"formulae_brew_sh_path" => Homebrew::API::Formula.formula_api_path,
"tab" => tab.to_bottle_hash,
},
},

View File

@ -354,8 +354,7 @@ class GitHubPackages
config_json_sha256, config_json_size = write_image_config(platform_hash, tar_sha256.hexdigest, blobs)
formulae_dir = tag_hash["formulae_brew_sh_path"]
documentation = "https://formulae.brew.sh/#{formulae_dir}/#{formula_name}" if formula_core_tap
documentation = "https://formulae.brew.sh/formula/#{formula_name}" if formula_core_tap
descriptor_annotations_hash = {
"org.opencontainers.image.ref.name" => tag,