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: Drop build metadata part in convertVersion #472

Merged
merged 2 commits into from
May 19, 2023

Conversation

rickymohk
Copy link
Contributor

@rickymohk rickymohk commented May 19, 2023

I assume the purpose of convertVersion is to convert the version string to semver 1.0 standard which Squirrel can support. So it might as well drop the build metadata part specified in semver 2.0, denoted by a + sign. Since by specification, the build metadata has no effect on precedence, I think it makes sense to simply discard it instead of incorporating it.

@rickymohk rickymohk requested a review from a team as a code owner May 19, 2023 03:28
@rickymohk rickymohk changed the title Drop build metadata part in convertVersion fix: Drop build metadata part in convertVersion May 19, 2023
@felixrieseberg
Copy link
Member

The code looks good to me, thank you! Quick ask: Could we add a test just to check that we're handling version numbers correctly?

@rickymohk
Copy link
Contributor Author

@felixrieseberg Added tests.

@felixrieseberg felixrieseberg merged commit 275176c into electron:main May 19, 2023
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