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
Stop including flight block source in json #14611
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 |
---|---|---|
|
@@ -233,7 +233,6 @@ DEPENDENCIES | |
did_you_mean | ||
json_schemer | ||
mechanize | ||
method_source | ||
minitest | ||
parallel_tests | ||
parlour | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -301,11 +301,7 @@ def load(config:) | |||||||||||||||||
|
||||||||||||||||||
json_cask[:artifacts].each do |artifact| | ||||||||||||||||||
key = artifact.keys.first | ||||||||||||||||||
if FLIGHT_STANZAS.include?(key) | ||||||||||||||||||
instance_eval(artifact[key]) | ||||||||||||||||||
else | ||||||||||||||||||
send(key, *artifact[key]) | ||||||||||||||||||
end | ||||||||||||||||||
send(key, *artifact[key]) | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Is this needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why would that be needed? You can't reach this code if you use a flight stanza. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You shouldn't make it past the following code if you have a flight artifact. brew/Library/Homebrew/cask/cask_loader.rb Lines 233 to 238 in 2a417f1
|
||||||||||||||||||
end | ||||||||||||||||||
|
||||||||||||||||||
caveats json_cask[:caveats] if json_cask[:caveats].present? | ||||||||||||||||||
|
This file was deleted.
This file was deleted.
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.
Could do similarly for
languages
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 think that including the languages in the JSON still is useful for users even if we don't use it.
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.
@apainintheneck Given no users ever requested it and it increases the size of the JSON: I disagree.