mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Merge pull request #4991 from ipfs/feat/git-plugin-default
plugin: preload git plugin by default
This commit is contained in:
commit
1f3a5fe481
@ -172,7 +172,7 @@ func makeExecutor(req *cmds.Request, env interface{}) (cmds.Executor, error) {
|
||||
}
|
||||
if ok {
|
||||
if _, err := loader.LoadPlugins(pluginpath); err != nil {
|
||||
log.Warning("error loading plugins: ", err)
|
||||
log.Error("error loading plugins: ", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2,10 +2,13 @@ package loader
|
||||
|
||||
import (
|
||||
"github.com/ipfs/go-ipfs/plugin"
|
||||
pluginipldgit "github.com/ipfs/go-ipfs/plugin/plugins/git"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
var preloadPlugins = []plugin.Plugin{}
|
||||
var preloadPlugins = []plugin.Plugin{
|
||||
pluginipldgit.Plugins[0],
|
||||
}
|
||||
|
||||
@ -3,4 +3,4 @@
|
||||
#
|
||||
# name go-path number of the sub-plugin
|
||||
|
||||
#ipldgit github.com/ipfs/go-ipfs/plugin/plugins/git 0
|
||||
ipldgit github.com/ipfs/go-ipfs/plugin/plugins/git 0
|
||||
|
||||
@ -17,11 +17,6 @@ fi
|
||||
|
||||
test_init_ipfs
|
||||
|
||||
test_expect_success "copy plugin" '
|
||||
mkdir -p "$IPFS_PATH/plugins" &&
|
||||
cp ../plugins/git.so "$IPFS_PATH/plugins/"
|
||||
'
|
||||
|
||||
# from https://github.com/ipfs/go-ipld-git/blob/master/make-test-repo.sh
|
||||
test_expect_success "prepare test data" '
|
||||
tar xzf ../t0280-plugin-git-data/git.tar.gz
|
||||
|
||||
Loading…
Reference in New Issue
Block a user