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

semver: fix Maven difference #191

Merged
merged 3 commits into from
Feb 19, 2025
Merged

semver: fix Maven difference #191

merged 3 commits into from
Feb 19, 2025

Conversation

cuixq
Copy link
Collaborator

@cuixq cuixq commented Feb 18, 2025

There is a bug when computing Maven difference: 1.0.0 is considered to have a minor diff with 1.0.1 - this is because 1.0.0 is canonicalized to 1 and returns -1 for minor and patch numbers.

This PR fixes this issue by returning 0 as the number of an empty element.

@cuixq cuixq requested a review from distractible February 18, 2025 08:21
@cuixq cuixq merged commit bc85dc8 into google:main Feb 19, 2025
2 checks passed
@cuixq cuixq deleted the semver branch February 19, 2025 00:03
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