Fix plugin autoclose unused import - #4168
Conversation
JoeKar
left a comment
There was a problem hiding this comment.
You can drop 028ff6f, because for builtin plugins we agreed to stay at v1.0.0.
The version isn't printed anyway:
micro/internal/config/plugin_installer.go
Lines 712 to 716 in 1c8b82b
028ff6f to
5dba61b
Compare
I think this comes from this text:
A comment like this: VERSION = "1.0.0" -- all built-in plugins fixed to 1.0.0in all the plugins would be useful to reflect that policy in the code; in the future, we can change it. I could make a PR with the changes, but I’d like you to give me the reasoning to include in the commit body so the commit history reflects why that decision was made. Maybe the previous quote is enough. Your call. |
Yes, more or less.
Might be an option, or... micro/internal/config/plugin_installer.go Line 383 in 1c8b82b ...is only called if The plugins.md#default-plugins must be updated to reflect that change, otherwise users will complain that they cannot load such examples, because they might not read until the end of the file stating:
|
|
I still think keeping It also makes the version explicit and readily visible to contributors. As you mentioned, placing it as the last line of the documentation file does not help either. By the way, regarding “the first line of your plugin’s Lua code should contain the plugin’s version”: the line number does not matter, but this is a useful convention. The version declaration must not use $ micro -plugin list | grep mdh
mdhelp (0.0.1)after adding $ micro -plugin list | grep mdh
mdhelp (0.0.0-unknown)I will create a separate PR to add the comments and correct the documentation, as these changes do not belong in this one. Feel free to close it if you remain unconvinced. |
No description provided.