Skip to content

Commit

Permalink
Merge pull request #14030 from Rylan12/checksum-json-api
Browse files Browse the repository at this point in the history
Add stable checksum to the JSON API
  • Loading branch information
Rylan12 committed Oct 21, 2022
2 parents 2bec760 + cc78b15 commit faa9950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/formula.rb
Expand Up @@ -2107,6 +2107,7 @@ def to_hash
"url" => stable.url,
"tag" => stable.specs[:tag],
"revision" => stable.specs[:revision],
"checksum" => stable.checksum&.to_s,
}

hsh["bottle"]["stable"] = bottle_hash if bottle_defined?
Expand Down
1 change: 1 addition & 0 deletions Library/Homebrew/formulary.rb
Expand Up @@ -159,6 +159,7 @@ def self.load_formula_from_api(name, flags:)
stable do
url urls_stable["url"]
version json_formula["versions"]["stable"]
sha256 urls_stable["checksum"] if urls_stable["checksum"].present?
end
end

Expand Down

0 comments on commit faa9950

Please sign in to comment.