mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Go plugins are supported on FreeBSD, but build tags in `plugin/loader/load_*.go` enable IPFS plugins only on Linux and Darwin.
19 lines
305 B
Go
19 lines
305 B
Go
// +build !cgo,!noplugin
|
|
// +build linux darwin freebsd
|
|
|
|
package loader
|
|
|
|
import (
|
|
"errors"
|
|
|
|
iplugin "github.com/ipfs/go-ipfs/plugin"
|
|
)
|
|
|
|
func init() {
|
|
loadPluginFunc = nocgoLoadPlugin
|
|
}
|
|
|
|
func nocgoLoadPlugin(fi string) ([]iplugin.Plugin, error) {
|
|
return nil, errors.New("not built with cgo support")
|
|
}
|