Unverified Commit 1f3a5fe4 authored by Whyrusleeping's avatar Whyrusleeping Committed by GitHub

Merge pull request #4991 from ipfs/feat/git-plugin-default

plugin: preload git plugin by default
parents add70f79 6696342a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment