Skip to content

fix: normalize semver before version comparison#4450

Open
Olexandr88 wants to merge 1 commit intoonflow:masterfrom
Olexandr88:master
Open

fix: normalize semver before version comparison#4450
Olexandr88 wants to merge 1 commit intoonflow:masterfrom
Olexandr88:master

Conversation

@Olexandr88
Copy link
Copy Markdown
Contributor

Normalize version to canonical semver format before comparison with git tags.

@turbolent
Copy link
Copy Markdown
Member

Thank you for your contribution! What problem does this solve?

@Olexandr88
Copy link
Copy Markdown
Contributor Author

fileVersion may lack the v prefix, which can lead to incorrect results in semver.Compare.
This change normalizes it before comparison.

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