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

ocm transfer componentversions --enforce --overwrite doesn't work as expected #1050

Open
3 tasks
hilmarf opened this issue Nov 5, 2024 · 0 comments
Open
3 tasks
Labels
area/ipcei Important Project of Common European Interest kind/bugfix Bug
Milestone

Comments

@hilmarf
Copy link
Member

hilmarf commented Nov 5, 2024

What happened:

When transfering component versions, it's not clear what the settings do.

  1. the synopsis: ocm transfer componentversions [<options>] {<component-reference>} <target> uses the term: <options> but down below are only Aliases and Flags listed.

  2. Options are ambiguous...

Option Description
--enforce enforce transport as if target version were not present
-f, --overwrite overwrite existing component versions
  1. Neither --enforce nor -f, --overwrite does respect --copy-resources

What you expected to happen:

When using the options: --enforce --overwrite --copy-local-resources --copy-resources --copy-sources I would expect that:

  • the component versions are transferred, regardless if there are already some with the same version or not
  • all local resources are transferred, regardless if there are already some with the same version or not
  • all resources are transferred, regardless if there are already some with the same version or not
  • all sources are transferred, regardless if there are already some with the same version or not

How to reproduce it (as minimally and precisely as possible):

See the documentation with ocm transfer componentversions --help

Run the following command twice:

ocm transfer componentversions --enforce --overwrite --copy-local-resources --copy-resources --copy-sources .\docker-hello-tiny ocm-oci-test.repository.foo.bar

Anything else we need to know:

Definition of done:

  • Flags is renamed to: Options
  • Simplify <options> and keep only: -f, --force
  • When -f or --force is set everything (component versions, local resources, resources, sources) is transferred again completely. In case of failures an error is shown.
@hilmarf hilmarf added the kind/bugfix Bug label Nov 5, 2024
@hilmarf hilmarf added this to the 2024-Q4 milestone Nov 5, 2024
@github-actions github-actions bot added the area/ipcei Important Project of Common European Interest label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ipcei Important Project of Common European Interest kind/bugfix Bug
Projects
Status: 🆕 ToDo
Development

No branches or pull requests

1 participant