Skip to content

Conversation

@hendrikheil
Copy link
Contributor

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
According to the latest stable semver spec, devspace is currently not correctly comparing semver versions.
We noticed this when a constraint we had set (>= 6.0.0-beta.4 did not allow the usage of 6.0.1-beta.0). According to Item 11 of the spec (https://semver.org/spec/v2.0.0.html#spec-item-11), this should have worked.
I tracked this down to a constraint in the prereleaseCheck function, that only allowed pre-release versions of the same base segments to be correctly compared. Removing this check still passes all tests but now correctly follows the spec in that regard.
I also removed a duplicate test from the suite.

Please provide a short message that should be published in the DevSpace release notes
Fixed an issue where DevSpace incorrectly compared semantic versions.

What else do we need to know?

Copy link
Collaborator

@FabianKramm FabianKramm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ciidyr thanks for the PR! LGTM!

@FabianKramm FabianKramm merged commit b008e76 into devspace-sh:main Aug 26, 2022
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