|
@@ -49,7 +49,7 @@ func Scan() ([]string, error) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- for _, p := range specsPaths {
|
|
|
|
|
|
+ for _, p := range SpecsPaths() {
|
|
dirEntries, err := os.ReadDir(p)
|
|
dirEntries, err := os.ReadDir(p)
|
|
if err != nil && !os.IsNotExist(err) {
|
|
if err != nil && !os.IsNotExist(err) {
|
|
return nil, errors.Wrap(err, "error reading dir entries")
|
|
return nil, errors.Wrap(err, "error reading dir entries")
|
|
@@ -93,7 +93,7 @@ func (l *localRegistry) Plugin(name string) (*Plugin, error) {
|
|
}
|
|
}
|
|
|
|
|
|
var txtspecpaths []string
|
|
var txtspecpaths []string
|
|
- for _, p := range specsPaths {
|
|
|
|
|
|
+ for _, p := range SpecsPaths() {
|
|
txtspecpaths = append(txtspecpaths, pluginPaths(p, name, ".spec")...)
|
|
txtspecpaths = append(txtspecpaths, pluginPaths(p, name, ".spec")...)
|
|
txtspecpaths = append(txtspecpaths, pluginPaths(p, name, ".json")...)
|
|
txtspecpaths = append(txtspecpaths, pluginPaths(p, name, ".json")...)
|
|
}
|
|
}
|