mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Remove remaining formula_api_path
references
This commit is contained in:
parent
08529c38a6
commit
68bbe03d04
@ -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) }
|
||||
|
@ -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,
|
||||
},
|
||||
},
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user