Skip to content

Conversation

@matthiasbruns
Copy link
Contributor

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

What this PR does / why we need it

Users complain about confusing error messages in get cv.
Errors that are related to technical problems, like missing docker binaries or other things, are not properly communicated and hidden by a generic invalid component reference message.
This PR logs more details in case of technical errors.

Which issue(s) this PR is related to

Fixes: #1560

@matthiasbruns matthiasbruns requested a review from a team as a code owner January 21, 2026 15:31
@github-actions github-actions bot added kind/bugfix Bug component/ocm-cli OCM Command Line Interface size/s Small and removed kind/bugfix Bug labels Jan 21, 2026
@matthiasbruns matthiasbruns force-pushed the fix/1560_confusing_error_logging branch from 981a0f3 to 377cf76 Compare January 22, 2026 12:31
@jakobmoellerdev
Copy link
Member

please sign your commits

@matthiasbruns
Copy link
Contributor Author

matthiasbruns commented Jan 23, 2026

please sign your commits

They are - at least I checked the commit history, all except the ones here from GitHubs 'Update Branch' button
Well I guess Github doesn't see it that way

@matthiasbruns matthiasbruns force-pushed the fix/1560_confusing_error_logging branch from d95f0b5 to 2593800 Compare January 23, 2026 14:24
dependabot bot and others added 6 commits January 23, 2026 15:27
…model#398)

* Bump github.com/cloudflare/circl from 1.1.0 to 1.3.3

Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.1.0 to 1.3.3.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](cloudflare/circl@v1.1.0...v1.3.3)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* ReleaseNotes for v0.3.0-rc.3

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gerald Morrison <67469729+morri-son@users.noreply.github.com>
Co-authored-by: GitHub Actions Bot <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.11.0 to 0.17.0.
- [Commits](golang/net@v0.11.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: souleb <bah.soule@gmail.com>
Co-authored-by: Gerald Morrison <67469729+morri-son@users.noreply.github.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
…s: `ocm-artifact` -> `software.ocm.artifact` and introduce `software.ocm.creator` (open-component-model#987)

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

For OCM repositories based on OCI registries, the manifest now gets an
annotation `software.ocm.componentversion` with the component version it
represents.

The image spec
(https://github.com/opencontainers/image-spec/blob/main/annotations.md)
state, that annotation names should use a reverse DNS domain prefix.

Therefore we should adapt the names of the already existing layer
annotations accordingly. This PR prepends the actuals names with
`software.ocm.".

The old layer annotation changes from `ocm-artifact` ->
`software.ocm.artifact`.

#### Which issue(s) this PR fixes
Fixes open-component-model/ocm-project#190
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns matthiasbruns force-pushed the fix/1560_confusing_error_logging branch from 2593800 to f6090c2 Compare January 23, 2026 14:27
@matthiasbruns matthiasbruns enabled auto-merge (squash) January 23, 2026 14:35
@matthiasbruns matthiasbruns merged commit 00100ff into open-component-model:main Jan 23, 2026
25 checks passed
@matthiasbruns matthiasbruns deleted the fix/1560_confusing_error_logging branch January 23, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/ocm-cli OCM Command Line Interface kind/bugfix Bug size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing error message with no docker credential binaries in PATH: component version "<component-reference>" is invalid covers up actual errors

4 participants