Skip to content

Ignore v prefix for NuGet versions#302

Merged
nscuro merged 2 commits into
mainfrom
issue-301
May 4, 2026
Merged

Ignore v prefix for NuGet versions#302
nscuro merged 2 commits into
mainfrom
issue-301

Conversation

@nscuro

@nscuro nscuro commented May 4, 2026

Copy link
Copy Markdown
Owner

Fixes #301

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added the bug Something isn't working label May 4, 2026
@nscuro nscuro requested a review from Copilot May 4, 2026 14:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issue #301 by teaching the NuGet version parser to ignore an initial v/V prefix, which prevents prefixed NuGet versions from falling back to less accurate generic comparison logic elsewhere in the ecosystem.

Changes:

  • Strip a leading v or V before NuGet version parsing and preserve the existing empty-version validation.
  • Add regression tests for parsing and comparing lowercase v-prefixed NuGet versions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
versatile-core/src/main/java/io/github/nscuro/versatile/version/NugetVersion.java Updates NuGet parsing to normalize away a leading v/V prefix before component extraction.
versatile-core/src/test/java/io/github/nscuro/versatile/version/NugetVersionTest.java Adds regression coverage for parsing and comparison of lowercase v-prefixed NuGet versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread versatile-core/src/main/java/io/github/nscuro/versatile/version/NugetVersion.java Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Niklas <nscuro@protonmail.com>
@nscuro nscuro merged commit 7aebd6b into main May 4, 2026
2 checks passed
@nscuro nscuro deleted the issue-301 branch May 4, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problems with v prefixed NugetVersions

2 participants