Skip to content

Commit

Permalink
Update internal json v3 formula tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apainintheneck committed Apr 27, 2024
1 parent 262c0e0 commit 32ee8ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/formulary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def self.load_formula_from_api(name, flags:)
T.bind(self, SoftwareSpec)

deps&.each do |name, info|
tags = case info["tags"]
tags = case info&.dig("tags")
in Array => tag_list
tag_list.map(&:to_sym)
in String => tag
Expand All @@ -226,7 +226,7 @@ def self.load_formula_from_api(name, flags:)
nil
end

if info.key?("uses_from_macos")
if info&.key?("uses_from_macos")
bounds = info["uses_from_macos"] || {}
bounds.deep_transform_keys!(&:to_sym)
bounds.deep_transform_values!(&:to_sym)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"post_install_defined": false,
"ruby_source_path": "Formula/f/fennel.rb",
"ruby_source_sha256": "5856e655fd1cea11496d67bc27fb14fee5cfbdea63c697c3773c7f247581197d",
"dependencies": [
"lua"
],
"version": "1.4.0",
"bottle": {
"files": {
Expand All @@ -43,6 +40,9 @@
"sha256": "f46028597883cbc38864c61bd3fa402da9cb90ce97415d51a7b5279bc17f7bd0"
}
}
},
"dependencies": {
"lua": null
}
},
"ponyc": {
Expand All @@ -59,25 +59,6 @@
"post_install_defined": false,
"ruby_source_path": "Formula/p/ponyc.rb",
"ruby_source_sha256": "81d51c25d18710191beb62f9f380bae3d878aad815a65ec1ee2a3b132c1fadb3",
"build_dependencies": [
"cmake",
"[email protected]"
],
"uses_from_macos": [
{
"llvm": [
"build",
"test"
]
},
"zlib"
],
"uses_from_macos_bounds": [
{
},
{
}
],
"version": "0.58.1",
"bottle": {
"files": {
Expand Down Expand Up @@ -110,7 +91,29 @@
"sha256": "ab49318d75eed3ee932c8e5add22f252ec0c852aad94945022877f926e93899f"
}
}
},
"dependencies": {
"cmake": {
"tags": [
"build"
]
},
"[email protected]": {
"tags": [
"build"
]
},
"llvm": {
"tags": [
"build",
"test"
],
"uses_from_macos": null
},
"zlib": {
"uses_from_macos": null
}
}
}
}
}
}

0 comments on commit 32ee8ae

Please sign in to comment.