Skip to content

Plugin directories are inconsistent #844

@chrislovecnm

Description

@chrislovecnm

We are using ~/.jx and ~/.jx-gitops for plugins, while jx3 is using ~/.jx3 now. See:

func PluginBinDirFunc(fn func(string) string) (string, error) {
for _, e := range []string{"JX_GITOPS_HOME", "JX3_HOME", "JX_HOME"} {
v := fn(e)
if v != "" {
return homedir.PluginBinDir(v, ".jx")
}
}
return homedir.PluginBinDir("", ".jx")
}

pluginBinDir, err := homedir.PluginBinDir(os.Getenv("JX_GITOPS_HOME"), ".jx-gitops")

Which directory should it use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions