-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
openapi-generator 3.0.1 (new formula) #28921
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
|
@ilovezfs technically yes. I'm not sure why the formula (swagger codegen) was created with compiling the project (tar.gz) in the first place. Would it be ok to merge it first so that Brew users can start using it and we'll try a separate PR to enhance the formula by using the JAR directly? |
|
@wing328 I think swagger-codegen supported installing "head" and would therefore need to recompile code directly. I think it's fine to lock openapi-generator down to only jars officially published to Maven. |
|
@jimschubert I prefer we provide the exact same formula for openapi-generator so that users can do the same (e.g. installing head) with openapi-generator. (from time to time we ask users to try the latest master to see if the fix works for them) |
|
new formula aren't supposed to have HEAD options though. So that won't work with a new formula |
|
Btw, this is the formula added a few years ago: https://github.com/arnested/homebrew-core/commit/69aa71155e4e317076f8c45e17197db63b305128 (which has HEAD defined) If new formula is not supposed to have HEAD options, how can we add it (later?) ? We want to make both swagger-codegen and openapi-generator almost identical in terms of usage. |
|
@wing328 I wasn't suggesting we never have head builds. Just explaining why the recompile existed in swagger-codegen, and that pulling the pre built jar is both faster and more secure (jars are signed, head branches aren't). So my preference on default install is to use the jar. When we re-introduce head, I think we should recompile head only conditionally. But I agree with you that the simple approach of compiling directly should be acceptable, considering we'll want to follow up later with head support. Sorry if my previous comment was confusing. Question: what are the limits before we support the head instruction? Like is there an age of 30 days as there is with repos for new formulas? |
|
@ilovezfs may I know how we can move this forward? Must this formula download the JAR since it's a new formula? And then later we can switch to "swagger-codegen" (--HEAD) approach to allow compiling from the latest master? |
|
I don't mind waiving the no-HEAD audit here. See the |
|
@ilovezfs thanks for the fix. I was about to push a fix based on the audit result. |
|
@ilovezfs I've updated the url based on the audit result. Please have another look when you've time. Thanks. |
|
CI reports the following errors (merge conflicts): I'll submit a new PR instead with a new commit/branch instead to see if the issue goes away |
|
please don't. we can fix it. |
057d749 to
d7d6cc9
Compare
It would be good for it to run without warnings, and certainly without using deprecated options. |
I agree. Is it ok to get this PR merged into master first and we'll file another PR to address the warning found in the test? |
|
Yes, that is fine! Thanks for the 🆕 formula @wing328 |
|
@ilovezfs thanks! Have a nice weekend. |
brew install --build-from-source <formula>, where<formula>is the name of the formula you're submitting?brew audit --strict <formula>(after doingbrew install <formula>)?