-
Notifications
You must be signed in to change notification settings - Fork 84
plugins: hard code plugin names #200
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
Conversation
Drop the -name argument for plugins, except for the template plugin where the default is set to "template". Ensures consistent name accross environments. An less invasive alternative would be to change the flag default values. Signed-off-by: Markus Lehtonen <[email protected]>
@marquiz Cannot we simply omit giving any name ? In that case the stub would use |
IMO this PR is far more simpler (and simplification). We cannot fix the dockerfile. Either need to have separate dockerfile for each plugin, separate docker target/stage for each plugin in the dockerfile or some ugly scripting (dockerfile mangling) in the CI. Why is it so bad to give the name explicitly (like the differ plugin already does)? |
We could add
It is not a biggie and of course we can go with what you suggest. I just thought that it'd be nice to avoid hardcoding and rely on the defaults instead... |
Ah, ok, we can do that.
We already have EDIT: Feel free to close this PR. I'll then adjust #197 instead |
Yes, but we only do that if there is an explicit name given on the command line, otherwise we go with the defaults and let the stub figure it out.
That's why I suggested the alternative. Since you are touching exactly those same pieces of code, we could as well remove those altogether and just rely on the defaults.
I agree. Does not make any sense for most of the plugins to be able to set it with a command line option.
If we go this way, I think the only thing we need to do for #197 is to remove the name given on the command line. |
|
Closing. As discussed above, let's not do this. |
Drop the -name argument for plugins, except for the template plugin where the default is set to "template". Ensures consistent name accross environments.
An less invasive alternative would be to change the flag default values.