?
This commit is contained in:
parent
0ef8e78af8
commit
d3f7bb6a5b
3 changed files with 29 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
chmod -R +w $out
|
chmod -R +w $out
|
||||||
cp ${./go.mod} go.mod
|
cp ${./go.mod} go.mod
|
||||||
cp ${./go.sum} go.sum
|
cp ${./go.sum} go.sum
|
||||||
|
cp ${./preload.go} plugin/loader/preload.go
|
||||||
echo -e "\nstorjds storj.io/ipfs-go-ds-storj/plugin 0" >> plugin/loader/preload_list
|
echo -e "\nstorjds storj.io/ipfs-go-ds-storj/plugin 0" >> plugin/loader/preload_list
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
|
|
27
ipfs/kubo/preload.go
Normal file
27
ipfs/kubo/preload.go
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
package loader
|
||||||
|
|
||||||
|
import (
|
||||||
|
pluginbadgerds "github.com/ipfs/kubo/plugin/plugins/badgerds"
|
||||||
|
pluginiplddagjose "github.com/ipfs/kubo/plugin/plugins/dagjose"
|
||||||
|
pluginflatfs "github.com/ipfs/kubo/plugin/plugins/flatfs"
|
||||||
|
pluginfxtest "github.com/ipfs/kubo/plugin/plugins/fxtest"
|
||||||
|
pluginipldgit "github.com/ipfs/kubo/plugin/plugins/git"
|
||||||
|
pluginlevelds "github.com/ipfs/kubo/plugin/plugins/levelds"
|
||||||
|
pluginpeerlog "github.com/ipfs/kubo/plugin/plugins/peerlog"
|
||||||
|
pluginstorjds "storj.io/ipfs-go-ds-storj/plugin"
|
||||||
|
)
|
||||||
|
|
||||||
|
// DO NOT EDIT THIS FILE
|
||||||
|
// This file is being generated as part of plugin build process
|
||||||
|
// To change it, modify the plugin/loader/preload.sh
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
Preload(pluginipldgit.Plugins...)
|
||||||
|
Preload(pluginiplddagjose.Plugins...)
|
||||||
|
Preload(pluginbadgerds.Plugins...)
|
||||||
|
Preload(pluginflatfs.Plugins...)
|
||||||
|
Preload(pluginlevelds.Plugins...)
|
||||||
|
Preload(pluginpeerlog.Plugins...)
|
||||||
|
Preload(pluginfxtest.Plugins...)
|
||||||
|
Preload(pluginstorjds.Plugins[0])
|
||||||
|
}
|
|
@ -31,5 +31,6 @@ done
|
||||||
make build
|
make build
|
||||||
|
|
||||||
cp go.mod go.sum $WRITE_PATH
|
cp go.mod go.sum $WRITE_PATH
|
||||||
|
cp plugin/loader/preload.go $WRITE_PATH
|
||||||
|
|
||||||
nix run github:nix-community/gomod2nix -- --dir $SOURCE_EXTRACTED --outdir $WRITE_PATH
|
nix run github:nix-community/gomod2nix -- --dir $SOURCE_EXTRACTED --outdir $WRITE_PATH
|
||||||
|
|
Reference in a new issue