mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 11:37:00 -07:00
generator: added check for *.so extension
This commit is contained in:
parent
9cef01acf3
commit
c8aa4aae93
1 changed files with 5 additions and 0 deletions
|
|
@ -130,6 +130,11 @@ func LoadPlugins(dirpath string, opts ...Option) (map[string]Generator, error) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// only try loading if file has .so extension
|
||||||
|
if filepath.Ext(path) != ".so" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// load the generator plugin from current path
|
// load the generator plugin from current path
|
||||||
gen, err := LoadPlugin(path)
|
gen, err := LoadPlugin(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue