Skip to content

feat: 743 loosen compref version parsing#1393

Closed
matthiasbruns wants to merge 3 commits into
open-component-model:mainfrom
matthiasbruns:fix/743_add_cv_version_regexp_compref
Closed

feat: 743 loosen compref version parsing#1393
matthiasbruns wants to merge 3 commits into
open-component-model:mainfrom
matthiasbruns:fix/743_add_cv_version_regexp_compref

Conversation

@matthiasbruns

@matthiasbruns matthiasbruns commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

  • This Pr reduces the logging level in get cv when requesting an invalid version

Which issue(s) this PR fixes

Contributes: open-component-model/ocm-project#752

Needed for #1341

On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns matthiasbruns requested a review from a team as a code owner December 10, 2025 11:22
@github-actions github-actions Bot added the kind/feature new feature, enhancement, improvement, extension label Dec 10, 2025
@github-actions github-actions Bot added the size/s Small label Dec 10, 2025
@matthiasbruns matthiasbruns changed the title feat: 743 loosen compres version parsing feat: 743 loosen compref version parsing Dec 10, 2025
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
if tc.expected.Type != "" {
var opts []Option
if tc.ignoreSemverValidation {
opts = append(opts, IgnoreSemverCompatibility())

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.

Currentyl it is used only in tests, will it be added to cli or somewhere else?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, in here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i just saw that it's cli only...

matthiasbruns added a commit that referenced this pull request Dec 11, 2025
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it
Adds semver checks to `ocm add cv` analog to `ocm get cv`

- This PR will only update cli and add tests when
#1317
is merged to verify, that the constructor validation works as expected
- This Pr also reduces the logging level in `get cv` when requesting an
invalid version
#1393

#### Which issue(s) this PR fixes
Fixes: open-component-model/ocm-project#743
Fixes: open-component-model/ocm-project#752

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Co-authored-by: ocmbot[bot] <125909804+ocmbot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature new feature, enhancement, improvement, extension size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants