open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
29 stars 18 forks source link

Extend version regexp to support semver #834

Open fabianburth opened 1 week ago

fabianburth commented 1 week ago

What this PR does / why we need it:

Users created components with complex semver versions (e.g. 0.2.3+2024.T06b). This lead to problems, for example when calling ocm get references ./registry//github.com/acme.org/helloworld:0.2.3+2024.T06b.

This PR extends the version regex used by ocm to also support such complex semver version numbers.