mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Improved plugin loading docs.
This commit is contained in:
@@ -35,20 +35,20 @@ func DefaultSrcRoot() (string, error) {
|
||||
|
||||
root = filepath.Join(
|
||||
os.Getenv("GOPATH"), "src",
|
||||
pgmconfig.DomainName, pgmconfig.ProgramName, pgmconfig.PluginRoot)
|
||||
pgmconfig.DomainName, pgmconfig.ProgramName, pgmconfig.RelPluginHome)
|
||||
if FileExists(root) {
|
||||
return root, nil
|
||||
}
|
||||
nope = append(nope, root)
|
||||
|
||||
root = pgmconfig.DefaultPluginConfig().DirectoryPath
|
||||
root = pgmconfig.DefaultPluginConfig().AbsPluginHome
|
||||
if FileExists(root) {
|
||||
return root, nil
|
||||
}
|
||||
nope = append(nope, root)
|
||||
|
||||
root = filepath.Join(
|
||||
pgmconfig.HomeDir(), pgmconfig.ProgramName, pgmconfig.PluginRoot)
|
||||
pgmconfig.HomeDir(), pgmconfig.ProgramName, pgmconfig.RelPluginHome)
|
||||
if FileExists(root) {
|
||||
return root, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user