Skip to content

Commit

Permalink
Merge pull request #4991 from ipfs/feat/git-plugin-default
Browse files Browse the repository at this point in the history
plugin: preload git plugin by default
  • Loading branch information
whyrusleeping authored Jun 13, 2018
2 parents add70f7 + 6696342 commit 1f3a5fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/ipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
5 changes: 4 additions & 1 deletion plugin/loader/preload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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],
}
2 changes: 1 addition & 1 deletion plugin/loader/preload_list
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions test/sharness/t0280-plugin-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f3a5fe

Please sign in to comment.