Skip to content

feat: setup get component version command#82

Merged
jakobmoellerdev merged 40 commits into
open-component-model:mainfrom
jakobmoellerdev:get-component-versions
May 15, 2025
Merged

feat: setup get component version command#82
jakobmoellerdev merged 40 commits into
open-component-model:mainfrom
jakobmoellerdev:get-component-versions

Conversation

@jakobmoellerdev

@jakobmoellerdev jakobmoellerdev commented Apr 28, 2025

Copy link
Copy Markdown
Member

this sets up the get component version command. This is a very early PR that we will need to split up into multiple sub PRs with corrections in modules but it serves as an integration point.

What this PR does / why we need it

This implements the Get Component Version command as described in the reference documentation. Not included are things such as reference lookups and other smaller features that are present in old OCM but not new OCM. Nevertheless it will serve as a starting point for us. Depending on how we progress, we will either get this merged in with hardcoded oci support or with plugin support already

Which issue(s) this PR fixes

Eventually fixes open-component-model/ocm-project#473 but not before this needs to be extremely slimmed down and broken into various subissues in open-component-model/ocm-project#448.

fix #82

this sets up the get component version command. This is a very early PR that we will need to split up into multiple sub PRs with corrections in modules but it serves as an integration point.
@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension area/documentation Documentation related size/l Large labels Apr 28, 2025
# Conflicts:
#	bindings/go/oci/spec/repository/scheme.go
#	bindings/go/oci/spec/repository/v1/oci/repository.go
#	bindings/go/oci/spec/repository/v1/oci/zz_generated.deepcopy.go
#	bindings/go/oci/spec/repository/v1/oci/zz_generated.ocm_type.go
#	cli/cmd/root.go
#	cli/go.mod
#	cli/go.sum
#	cli/internal/reference/compref/compref.go
#	cli/internal/reference/compref/compref_test.go
#	cli/log/flag.go
#	docs/reference/cli/ocm.md
#	docs/reference/cli/ocm_completion.md
#	docs/reference/cli/ocm_completion_bash.md
#	docs/reference/cli/ocm_completion_fish.md
#	docs/reference/cli/ocm_completion_powershell.md
#	docs/reference/cli/ocm_completion_zsh.md
#	docs/reference/cli/ocm_generate.md
# Conflicts:
#	bindings/go/oci/internal/log/logging.go
# Conflicts:
#	bindings/go/oci/credentials/docker_config.go
#	bindings/go/oci/spec/credentials/scheme.go
#	bindings/go/oci/spec/credentials/v1/docker_config.go
@github-actions github-actions Bot added the component/github-actions Changes on GitHub Actions or within `.github/` directory label May 7, 2025
@jakobmoellerdev

jakobmoellerdev commented May 9, 2025

Copy link
Copy Markdown
Member Author

This can now be started for a review but I still need to start adding tests as well as the recursive flag to allow recursive component resolution

When asking around it seemed to become clear that most people actually do not even use recursive right now so I decided to not implement this for the first version. This can always be added afterwards.

@jakobmoellerdev jakobmoellerdev marked this pull request as ready for review May 9, 2025 16:55
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner May 9, 2025 16:55

@Skarlso Skarlso 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.

Just first run. Generally, this is gorgeous. :) 👍 I have a few questions, then I would like to run this actually locally once I have more time.

Comment thread cli/cmd/get/component-version/encode.go Outdated
Comment thread cli/internal/context/context.go Outdated
Comment thread cli/configuration/v1/flat_map.go
@jakobmoellerdev jakobmoellerdev requested a review from Skarlso May 12, 2025 14:17
Comment thread cli/internal/plugin/spec/config/v2alpha1/config.go
Comment thread cli/cmd/get/component-version/cmd.go Outdated
Skarlso
Skarlso previously approved these changes May 15, 2025

@Skarlso Skarlso 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, nice work! :nod-cry:

@jakobmoellerdev jakobmoellerdev merged commit 75bfcc6 into open-component-model:main May 15, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Documentation related component/github-actions Changes on GitHub Actions or within `.github/` directory kind/feature new feature, enhancement, improvement, extension size/l Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the Get Component Version Command to the OCM Root Command

2 participants