Add projects
This commit is contained in:
parent
2d3a9ad623
commit
8b607dd700
1802 changed files with 503346 additions and 2 deletions
15
backend/internal/pluginhost/loader_unsupported.go
Normal file
15
backend/internal/pluginhost/loader_unsupported.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
//go:build !cgo && !windows
|
||||
|
||||
package pluginhost
|
||||
|
||||
import "fmt"
|
||||
|
||||
type unsupportedLoader struct{}
|
||||
|
||||
func (unsupportedLoader) Open(file pluginFile, host *Host) (pluginClient, error) {
|
||||
return nil, fmt.Errorf("standard dynamic library plugin loading requires cgo on this platform: %s", file.Path)
|
||||
}
|
||||
|
||||
func defaultPluginLoader() pluginLoader {
|
||||
return unsupportedLoader{}
|
||||
}
|
||||
Loading…
Reference in a new issue