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
feat: allow scopes in loading plugins #1867
Comments
Sorry, at the moment, Verdaccio is not able to load plugins whose name is |
Thanks for the answer. We will stay with the old package for now =) |
On the roadmap ;-) @IhToN Could be added to |
After some after-work investigations I found that it was possible to reference the plugin name directly on the config.yaml file, example: auth:
'@verdaccio/active-directory': In any case I've added a new condition after verdaccio- and sinopia- prefixes it'll try to load @verdaccio/ prefix. It also changes the Plugin successfully loaded message to follow this structure: From can be: external plugin folder, locally installed plugin and config folder |
@IhToN one suggestion, this is something I've been thinking for a while .. what if .... the I'd suggest a new configuration parameter:
Then we could override the default here:
That will solve your issue and you wouldn't have to do this
rather a default configuration
This scalable for private plugins :) for all needs. what do you think? |
@juanpicado That would be another possibility but then we would still have the struggle that it may be that different plugins have different prefixes. If we have the packages
the problem will persist, and for the end user it will be simplier just to use the full plugin name. The way it is right now it's kind of a way to have "official" plugins (@verdaccio/, verdaccio- and sinopia-) and it would still let the end user include an infinite amount of plugins wihtout problems. It may be needed to document properly how the plugin loading works though. |
Hi pal 👋🏼! We get a lot of issues, so we currently close issues after 180 days of inactivity. It’s been at least 90c days since the last update here. Thanks for being a part of the Verdaccio community! 💘 |
A workaround for this is here using Docker https://github.com/xlts-dev/verdaccio-prometheus-middleware#installation |
Describe the bug
Verdaccio is not able to load @verdaccio/active-directory plugin when using the config setup from the documentation.
To Reproduce
Install @verdaccio/active-directory
Set the proper config file
Retrieve error: verdaccio-activedirectory plugin not found. try "npm install verdaccio-activedirectory"
Expected behavior
Get the plugin to load
If we install the verdaccio-activedirectory package it works as intended, it looks like Verdaccio is not able to load or retrieve the plugin from the @verdaccio scope.
The text was updated successfully, but these errors were encountered: