Skip to content
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

fix: modify install script to prioritize stable releases #4

Merged
merged 1 commit into from
May 1, 2024
Merged

fix: modify install script to prioritize stable releases #4

merged 1 commit into from
May 1, 2024

Conversation

micovery
Copy link
Collaborator

@micovery micovery commented May 1, 2024

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.

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.
@micovery micovery requested a review from ssvaidyanathan May 1, 2024 16:36
@micovery micovery self-assigned this May 1, 2024
@ssvaidyanathan
Copy link
Collaborator

pls make sure the script works on Windows as well

@micovery
Copy link
Collaborator Author

micovery commented May 1, 2024

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

@micovery micovery merged commit 17bf472 into apigee:main May 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants