"Unmatched component" error when running 'lscm workspace component ...'
I have a component associated with stream myStream and repository workspace A.
If I list components, it shows up:
$ lscm list components -m 9999 -r pilot
:
myComp
If I try to associate that component with repository workspace B, however, I get the following error:
$ lscm workspace component -r pilot workspaceB myStream myComp
Problem running 'workspace component':
Unmatched component "myComp".
I have carried out similar operations before without a problem. Can anyone suggest a likely cause of this error?
Thanks,
John
If I list components, it shows up:
$ lscm list components -m 9999 -r pilot
:
myComp
If I try to associate that component with repository workspace B, however, I get the following error:
$ lscm workspace component -r pilot workspaceB myStream myComp
Problem running 'workspace component':
Unmatched component "myComp".
I have carried out similar operations before without a problem. Can anyone suggest a likely cause of this error?
Thanks,
John
One answer
I believe you are trying to add the component to workspace B. If that is the case the right command to use is: 'scm workspace add-components workspaceB myComp'. By the way, if there are multiple components in the repository with the same name then you may see any 'ambiguous component' error. In that case, you need to specify the alias/uuid of the component.
'lscm list components -r pilot' will search the entire repository. You can specify the 'lscm list components -r pilot myStream' to just list the components of a stream/workspace.