You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🍀 Proposal: Specify the Plugin Directory Through the Configuration file #997
We have a -d flag to specify the plugin directory, and the default value is .devstream. I believe this flag doesn't play a value and almost everyone is using its default behavior.
I believe that using dtm in different directories is a very generic requirement, for example, if today I finish init in /tmp and tomorrow I run dtm again under /root, I want dtm to find the plugins I downloaded yesterday, not every time I tell dtm where the plugins are, or I can only run dtm in a specific directory.
Design
delete -d flag;
add pluginDir in core config. e.g.
# core configvarFile: ""# If not empty, use the specified external variables config filetoolFile: ""# If not empty, use the specified external tools config filepluginDir: ""If empty, use the "/usr/local/devstream/plugin" directory as defaultstate: # state config, backend can be local or s3backend: localoptions:
stateFile: devstream.state
Anything else
Done-Done Check
All related documents and yaml files have been updated
only absolute paths are allowed? If relative paths can be used, there is no effect.
would it be better to set the default path to ~/.devstream? If other systems may be supported in the future, HOME is a more generic path. (https://github.com/mitchellh/go-homedir)
should -d be kept if I have the need to specify the plugin directory temporarily?
only absolute paths are allowed? If relative paths can be used, there is no effect.
would it be better to set the default path to ~/.devstream? If other systems may be supported in the future, HOME is a more generic path. (https://github.com/mitchellh/go-homedir)
should -d be kept if I have the need to specify the plugin directory temporarily?
Activity
iyear commentedon Aug 17, 2022
@daniel-hutao Some details need to be discussed
~/.devstream? If other systems may be supported in the future,HOMEis a more generic path. (https://github.com/mitchellh/go-homedir)-dbe kept if I have the need to specify the plugin directory temporarily?daniel-hutao commentedon Aug 17, 2022
Very good thinking! lgtm for all above. @iyear
iyear commentedon Aug 18, 2022
@daniel-hutao Perhaps an easier way is to change the default plugin path
.devstreamdirectly to~/.devstream/pluginsThis way the configmanager and documentation doesn't have to be changed.
devstream/internal/pkg/pluginengine/plugin.go
Line 7 in d920d46