Masterminds / semver

Work with Semantic Versions in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

match on build metadata

ltagliamonte-dd opened this issue · comments

hello community!
Is there a way to match on semver build metadata?
I'm using build metadata to store the branch version and to avoid conflicts is 2 devs are working on the same chart.
I'm using helm cli that uses this library (v3) to find the correct version link of a chart.
For example:

helm show chart --version '0.*.0+luigi-upgrade' repo/signadot

returns:

version: 0.3.0+chart-upgrade-c405a19a

instead of returning empty.
There is no chart with +luigi-upgrade build metadata.

+1 semver.org indicates in rule 10 that a '+' can be used to denote build info but it should be ignored for determining precedence.

I can see that semver parses the '+' correctly. Does it conform to semver.org?
IGNORE - I ran a couple of unit tests to verify and it does

Closing as this appears to be handled.