Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
1f3a5fe4
Unverified
Commit
1f3a5fe4
authored
Jun 13, 2018
by
Whyrusleeping
Committed by
GitHub
Jun 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4991 from ipfs/feat/git-plugin-default
plugin: preload git plugin by default
parents
add70f79
6696342a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
cmd/ipfs/main.go
cmd/ipfs/main.go
+1
-1
plugin/loader/preload.go
plugin/loader/preload.go
+4
-1
plugin/loader/preload_list
plugin/loader/preload_list
+1
-1
test/sharness/t0280-plugin-git.sh
test/sharness/t0280-plugin-git.sh
+0
-5
No files found.
cmd/ipfs/main.go
View file @
1f3a5fe4
...
...
@@ -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
)
}
}
...
...
plugin/loader/preload.go
View file @
1f3a5fe4
...
...
@@ -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
],
}
plugin/loader/preload_list
View file @
1f3a5fe4
...
...
@@ -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
test/sharness/t0280-plugin-git.sh
View file @
1f3a5fe4
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment