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

rejectVersionIf { } now considers all versions as stable #629

Closed
jmfayard opened this issue Sep 27, 2022 · 2 comments
Closed

rejectVersionIf { } now considers all versions as stable #629

jmfayard opened this issue Sep 27, 2022 · 2 comments

Comments

@jmfayard
Copy link
Member

🐛 Describe the bug

In refreshVersions 0.50.2, all versions are described as stable

⚠️ Current behavior

Versions like 1.7.20-RC and 1.7.20-Beta are considered stable.
rendering refreshVersions.rejectVersionIf { .. } useless

✅ Expected behavior

Like before

💣 Steps to reproduce

Checkout jmfayard/kotlin-playground@0e07f63

📱 Tech info

https://scans.gradle.com/s/dteblugtek5ec#infrastructure

@LouisCAD
Copy link
Member

Oh yeah, we need to support number-less versions.

Care to add some failing tests in a PR? I'd pick it up from here and fix it the way it should.

@LouisCAD
Copy link
Member

LouisCAD commented Oct 1, 2022

Fixed on main, just launched the publication of a new snapshot in case you want to try it before one of use make a new release.

thederputy pushed a commit to thederputy/refreshVersions that referenced this issue Oct 2, 2022
Since last changes in the Version class, versions like
1.7.20-RC and 1.7.20-Beta would be marked as stable instead
of respectively ReleaseCandidate and Beta because the logic
expected a number in all cases.

The number is now optional for all pre-versions, except milestones.

To prevent future recurrence of such regression, this commit
also adds tests that assert the expected stability level of
many known versions from various libraries.

Fixes Splitties#629
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

No branches or pull requests

2 participants