Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: context base resolvers used to resolve components #1205

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mandelsoft
Copy link
Contributor

What this PR does / why we need it

Using the ocm config it is possible to configure default resolvers for component versions.
THis is mainly used to implicitly provide lookup repository when following component version references
by recursive operations, like transport and signing.

But they are also used to support the parsing of component version references of the command line.
If configured, the repository part of the component version notation (for example for ocm get component ....)
can be omitted and the given name is searched for by using the given resolvers.

Unfortunately this works only for the specification of component versions. But the command line also allows to specify
component names, only. Typically, then all versions of those components are listed (for the command shown as example).
This is inconsistent, because is doe not for together with resolvers.

This PR introduces the missing case to lookup all versions of a component found via a given component resolver.

Which issue(s) this PR fixes

Fixes #1204

@mandelsoft mandelsoft requested a review from a team as a code owner December 18, 2024 15:37
@github-actions github-actions bot added kind/bugfix Bug component/ocm-cli OCM Command Line Interface size/m Medium labels Dec 18, 2024
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/m Medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configured resolvers are not used to lookup component names given on the command line
1 participant