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
|
||||
}
|
||||
|
||||
// only try loading if file has .so extension
|
||||
if filepath.Ext(path) != ".so" {
|
||||
return nil
|
||||
}
|
||||
|
||||
// load the generator plugin from current path
|
||||
gen, err := LoadPlugin(path)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue