Skip to content

fix: add subPath to OCI repository spec implementation - bindings#1235

Merged
piotrjanik merged 4 commits into
open-component-model:mainfrom
piotrjanik:fix/oci-subpath-oci
Nov 24, 2025
Merged

fix: add subPath to OCI repository spec implementation - bindings#1235
piotrjanik merged 4 commits into
open-component-model:mainfrom
piotrjanik:fix/oci-subpath-oci

Conversation

@piotrjanik

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The OCM specification defines an optional subPath field as a repository prefix. As this field is missing in the current ocm v2.

Which issue(s) this PR fixes:

open-component-model/ocm-project#756

What this PR does / why we need it:

The OCM specification defines an optional subPath field as a repository prefix. As this field is missing in the current ocm v2.

Which issue(s) this PR fixes:

open-component-model/ocm-project#756

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
@piotrjanik piotrjanik requested a review from a team as a code owner November 20, 2025 20:23

@fabianburth fabianburth left a comment

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.

Generally, looks good. Just for my understanding, so our implementations essentially does not care about whether you split your url into baseUrl and subPath or whether you just put everything into baseUrl?

fabianburth
fabianburth previously approved these changes Nov 21, 2025
matthiasbruns
matthiasbruns previously approved these changes Nov 22, 2025

@matthiasbruns matthiasbruns left a comment

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.

lgtm

Comment thread bindings/go/oci/repository/repository.go
Comment thread bindings/go/oci/spec/repository/v1/oci/repository.go
What this PR does / why we need it:

The OCM specification defines an optional subPath field as a repository prefix. As this field is missing in the current ocm v2.

Which issue(s) this PR fixes:

open-component-model/ocm-project#756

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
@piotrjanik piotrjanik dismissed stale reviews from matthiasbruns and fabianburth via fd4535e November 24, 2025 12:57
What this PR does / why we need it:

The OCM specification defines an optional subPath field as a repository prefix. As this field is missing in the current ocm v2.

Which issue(s) this PR fixes:

open-component-model/ocm-project#756

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
@piotrjanik piotrjanik enabled auto-merge (squash) November 24, 2025 13:36
@piotrjanik piotrjanik merged commit da83120 into open-component-model:main Nov 24, 2025
19 checks passed
@piotrjanik piotrjanik deleted the fix/oci-subpath-oci branch January 28, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants