Skip to content

fix(version): account for prerelease in Compare when segment counts differ - #221

Closed
AdamMagued wants to merge 1 commit into
hashicorp:mainfrom
AdamMagued:fix-issue-216
Closed

AdamMagued wants to merge 1 commit into
hashicorp:mainfrom
AdamMagued:fix-issue-216

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #216

Summary

  • Corrected Compare behavior so prerelease tags are evaluated when comparing versions with unequal segment counts.
  • Added regression tests for 1.0.0-alpha vs 1.0.0.0 comparisons.

Verified via container sandbox test suite.

…iffer

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
@jrasell

jrasell commented Oct 9, 2026

Copy link
Copy Markdown
Member

@AdamMagued you have raised two PR's for the same bug and they seem highly automated. I'm going to close both out.

@jrasell jrasell closed this Oct 9, 2026
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.

Compare ignores the pre-release when the versions have a different number of segments: 1.0.0-alpha equals 1.0.0.0

2 participants