-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Formula, Cask: add livecheck_defined hash value #21717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2864,6 +2864,7 @@ def to_hash | |||||
| "compatibility_version" => compatibility_version, | ||||||
| "autobump" => autobump?, | ||||||
| "no_autobump_message" => no_autobump_message, | ||||||
| "livecheck_defined" => livecheck_defined?, | ||||||
| "skip_livecheck" => livecheck.skip?, | ||||||
|
Comment on lines
+2867
to
2868
|
||||||
| "livecheck_defined" => livecheck_defined?, | |
| "skip_livecheck" => livecheck.skip?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding
"livecheck_defined" => livecheck_defined?toCask#to_hwon’t make this value available via the JSON API:Homebrew::API::Cask::CaskStructGeneratorends by callingCaskStruct.from_hash, which slices toCaskStructprops and will drop the new key unlessHomebrew::API::CaskStructis updated. If the goal is to have this in API JSON forTap.autobump, add alivecheck_definedprop toCaskStructand plumb it through struct generation/serialization (and then set it on the API-loaded cask’s DSL socask.livecheck_defined?matches API data).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that's correct. With this branch checked out, I ran
brew generate-formula-apiandbrew generate-cask-apiin theformulae.brew.shrepository and confirmed that the generated JSON contained the expected "livecheck_defined" value.