semver icon indicating copy to clipboard operation
semver copied to clipboard

allow prerelease matching

Open erma07 opened this issue 2 years ago • 3 comments

This change adds prerelease constraint *-alpha.* for matching prerelease in a version with the following format 1.2.3-alpha.1

I am struggling to configure rancher fleet imageScans properly without this change.

erma07 avatar Oct 03 '23 19:10 erma07

This is exactly what we need from Argo-CD and since Argo uses this library for version matching from semver. Is there anything that can be done to get this merged?

kmskebo avatar Mar 17 '25 10:03 kmskebo

Yes I'm having the same problem as @kmskebo - I'm willing to contribute if necessary! we are using gitversion+gitflow versioning https://gitversion.net/docs/learn/branching-strategies/gitflow/examples so I'd like to get a build via: *-beta.* to match {major}.{minor}.{patch}-beta.{build#} and *-alpha.* to match {major}.{minor}.{patch}-alpha.{build#}

danpf avatar Jun 30 '25 19:06 danpf