Skip to content

feat: recursive cv transfer support#1506

Merged
jakobmoellerdev merged 25 commits into
open-component-model:mainfrom
jakobmoellerdev:prefetch-recursive
Jan 22, 2026
Merged

feat: recursive cv transfer support#1506
jakobmoellerdev merged 25 commits into
open-component-model:mainfrom
jakobmoellerdev:prefetch-recursive

Conversation

@jakobmoellerdev

Copy link
Copy Markdown
Member

What this PR does / why we need it

Introduced recursive flag for transfer component-version command to enable recursive discovery and transfer of component versions. Refactored graph definition logic and added internal helpers to support recursive operations. Includes unit tests to validate functionality.

Which issue(s) this PR fixes

part of open-component-model/ocm-project#790

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
allows resolution to pass if we just have no credentials so the digest processor can still be called during construction

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Introduced recursive flag for `transfer component-version` command to enable recursive discovery and transfer of component versions. Refactored graph definition logic and added internal helpers to support recursive operations. Includes unit tests to validate functionality.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension size/l Large labels Dec 29, 2025
jakobmoellerdev and others added 4 commits December 30, 2025 09:18
Introduced recursive flag for `transfer component-version` command to enable recursive discovery and transfer of component versions. Refactored graph definition logic and added internal helpers to support recursive operations. Includes unit tests to validate functionality.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
# Conflicts:
#	cli/cmd/transfer/component-version/cmd.go
#	cli/cmd/transfer/component-version/internal/discovery.go
@github-actions github-actions Bot added the size/m Medium label Dec 30, 2025
Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
# Conflicts:
#	bindings/go/constructor/construct.go
Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
@jakobmoellerdev jakobmoellerdev marked this pull request as ready for review December 30, 2025 13:51
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner December 30, 2025 13:51
Refactored repository serialization to handle multiple repository types (OCI and CTF). Improved graph discoverer initialization by precomputing the root.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Comment thread cli/internal/reference/compref/compref.go
…t tests

Ensured SubPath handling in OCI repository serialization is accurate. Added comprehensive test cases for `Ref.String()` to validate expected output formatting.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
# Conflicts:
#	cli/go.mod
#	cli/go.sum
#	cli/integration/go.sum
Skarlso
Skarlso previously approved these changes Jan 5, 2026
Comment thread cli/cmd/transfer/component-version/internal/discovery.go Outdated
Co-authored-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
Enhanced JSON schema inference to handle `nil` values by returning a schema with `null` as its type. Updated unit tests to validate this behavior. Added `NullType` constant to improve type handling consistency.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Updated various OCM bindings including `cel`, `normalisation`, `runtime`, `utf8`, `rsa`, `signing`, and `transform` to version `20260120091201-ad28d12c0bea`. Adjusted `go.mod` and `go.sum` accordingly.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Updated `descriptor/v2` dependency to `v2.0.1-alpha9` in `go.mod` and `go.sum` files.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
Updated `oci` binding dependency to `v0.0.26` in `go.mod` and `go.sum` files.

Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
fabianburth
fabianburth previously approved these changes Jan 21, 2026
matthiasbruns
matthiasbruns previously approved these changes Jan 21, 2026
Skarlso
Skarlso previously approved these changes Jan 21, 2026
# Conflicts:
#	cli/go.mod
#	cli/go.sum
#	cli/integration/go.mod
#	cli/integration/go.sum
@jakobmoellerdev jakobmoellerdev merged commit 5719865 into open-component-model:main Jan 22, 2026
22 checks passed
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/l Large size/m Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants