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 install plugins does not create the plugins-folder #1063

Open
ikhandamirov opened this issue Nov 8, 2024 · 0 comments
Open

ocm install plugins does not create the plugins-folder #1063

ikhandamirov opened this issue Nov 8, 2024 · 0 comments
Labels
area/ipcei Important Project of Common European Interest kind/bugfix Bug

Comments

@ikhandamirov
Copy link
Contributor

ikhandamirov commented Nov 8, 2024

What happened:

The command ocm install plugins can only install plug-ins, if the folder ~/.ocm/plugins already exists. If it does not, the CLI downloads the plug-in to a temporary folder, does not install it and does not show an error message.

What you expected to happen:

I'd expect the folder to be created automatically, if it does not exist.

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

  1. Make sure the folder ~/.ocm/plugins does not exist on your system.
  2. Try to install a plug-in and check the output. For example:
% ocm install plugins -f ghcr.io/open-component-model/ocm//ocm.software/plugins/ecrplugin:0.17.0
found resource ecrplugin["architecture"="arm64","os"="darwin"]
/var/folders/l7/m6cxkwb50cz4gnbh0fkj89pr0000gn/T/plugin-2521465333: 81335650 byte(s) written
  1. Execute ocm get plugins, to note that the plug-in has not been installed. For example:
% ocm get plugins
no elements found
  1. Now create the folder ~/.ocm/plugins manually.
  2. Re-execute ocm install plugins and ocm get plugins, and note that now the plug-in is installed.
@github-actions github-actions bot added the area/ipcei Important Project of Common European Interest label Nov 8, 2024
@ikhandamirov ikhandamirov changed the title ocm install plugin does not create the plugins-folder ocm install plugins does not create the plugins-folder Nov 8, 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