-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Refactor FormulaCreator
args and call parse_url
automatically
#20116
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
Conversation
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.
Thanks for splitting this out. A few nits but looks good so far.
b4539e5
to
4c8a0df
Compare
@MikeMcQuaid addressed all comments. What to do with EDIT: Nevermind. This is ready for review. |
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
@abitrolly Please stop pushing to this PR. I'm going to fix it. |
78a35aa
to
c5d091a
Compare
@abitrolly Please test the latest version here. I've completed the typechecking and refactoring. |
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.
Now I see what you mean by combining parsing logic into constructor. The assignment of instance variables became more clear. Looks good.
I kind of disagree with the way test data is processed, but that's not a blocker. Just a personal preference from Go/Python side.
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.
@abitrolly Can you clarify whether you tested this or not? Please can we move this to a conclusion? For refactoring with no functionality change this PR has wasted a lot of time and I am losing my patience with the amount of back and forth required here.
Co-authored-by: Anatoli Babenia <anatoli@rainforce.org>
@MikeMcQuaid I've tested it with
|
The conclusion is that it is ready long ago. ) |
Thanks @abitrolly. |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This PR makes all
FormulaCreator
params, except URL optional, to make test calls less verbose.Calls
parse_url
in constructor to ensure that supplied URL is automatically parsed (as discussed in https://github.com/Homebrew/brew/pull/20025/files#r2123010882).The change includes fix from #20115 that restores tests run on Linux.