-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Update openapi-generator-cli.sh #2065
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
* `jq` executable is a much cleaner way to get version number * Using `jq` and getting `releases` instead of `tags` allows us to get latest stable release
|
@artheus thanks for the PR. For me, I need to install (currently, there's no check for Python installation either but I hope you see my point providing a friendly message in case |
|
cc @jimschubert |
|
@wing328 Well, should not the change I did on row 23 do this? |
Right. Sorry I missed that.
Looks good to me. At least the user is informed certain package needs to be installed. |
|
This change forces users to install For example, I'm not able to install Is it possible that we can use the |
|
@wing328 ^^ |
|
@jimschubert understood but the same argument could apply to python as well (but one may argue Python is "usually" pre-installed in the build) Ideally neither python or jq is required in the script. What about maintaing a text file to store the latest version so that no parsing is required? (the drawback is of course the overhead to keep it up-to-date as part of the release process) (I noticed "jq" was mentioned in the documentation before so I thought it's not a bad idea to use it) |
|
@wing328 to that argument, mvn and curl would ideally not be needed ;) I can remove the dependency on mvn fairly easily, and this might be ideal. Where would your proposed text file reside? My only concerns with a text file are that literally anything could exist in it, and it would be easy for an automated process to "miss" updating it. By using GitHub's API we can be confident of the response and it's structure. That's not too say I'm against a text file (it does simplify dependencies of this script). Do you know of any other commands which might simplify down to requiring only curl and bash built-ins? |
We do have a release checkout script that can be updated to ensure the text filie contains the latest stable version.
Not that I know of. To me, the simplest solution is to store the version in the text file. I may have time to try to implement it tomorrow to see how easy it's |
|
… On Thu, 7 Feb 2019, 17:04 William Cheng, ***@***.***> wrote:
My only concerns with a text file are that literally anything could exist
in it, and it would be easy for an automated process to "miss" updating it.
We do have a release checkout script that can be updated to ensure the
text filie contains the latest stable version.
Do you know of any other commands which might simplify down to requiring
only curl and bash built-ins?
Not that I know of. To me, the simplest solution is to store the version
in the text file.
I may have time to try to implement it tomorrow to see how easy it's
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2065 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAlxwofJCBGAx_tqUJn-ZzUawfEUnpzDks5vLE6rgaJpZM4aj1aj>
.
|
* `jq` executable is a much cleaner way to get version number * Using `jq` and getting `releases` instead of `tags` allows us to get latest stable release
jqexecutable is a much cleaner way to get version numberjqand gettingreleasesinstead oftagsallows us to get latest stable releasePR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.master,. Default:3.4.x,4.0.xmaster.Description of the PR
Very simple change, simpler way to get latest release (not pre-relase) in the bash script.