apigee / apigee-go-gen

Apache License 2.0
2 stars 3 forks source link

fix: modify install script to prioritize stable releases #4

Closed micovery closed 4 months ago

micovery commented 4 months ago

Before, the script was picking whatever was the most recent released tag. This is not necessarily correct, as you can have tags for betas, and release candidates. We don't want customers installing the "latest" and end up using an unstable build.

Now, we sort all the tags by the semantic version number, and then we pick the first stable one (not containing a dash). If we can't find any stable one, we pick the top one in the list.

ssvaidyanathan commented 4 months ago

pls make sure the script works on Windows as well

micovery commented 4 months ago

@ssvaidyanathan , for Windows, should we target something like PowerShell, and have a separate script? Or are you referring to running the script in WSL ?