refactor(repo/config) move config under repo
Brian Tiger Chow committed
Jan 12, 2015 at 11:01 UTC
5b3164de5c6617178ab5893d6311f7ff0a47c43e
22 files changed
+17
-17
cmd/ipfs/init.go
+1
-1
@@ -10,7 +10,6 @@ import (
10
11
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
12
cmds "github.com/jbenet/go-ipfs/commands"
13
- config "github.com/jbenet/go-ipfs/config"
13
core "github.com/jbenet/go-ipfs/core"
14
corecmds "github.com/jbenet/go-ipfs/core/commands"
15
imp "github.com/jbenet/go-ipfs/importer"
@@ -18,6 +17,7 @@ import (
17
ci "github.com/jbenet/go-ipfs/p2p/crypto"
18
peer "github.com/jbenet/go-ipfs/p2p/peer"
19
repo "github.com/jbenet/go-ipfs/repo"
20
+ config "github.com/jbenet/go-ipfs/repo/config"
21
u "github.com/jbenet/go-ipfs/util"
22
debugerror "github.com/jbenet/go-ipfs/util/debugerror"
23
)
cmd/ipfs/main.go
+1
-1
@@ -19,10 +19,10 @@ import (
19
cmds "github.com/jbenet/go-ipfs/commands"
20
cmdsCli "github.com/jbenet/go-ipfs/commands/cli"
21
cmdsHttp "github.com/jbenet/go-ipfs/commands/http"
22
- config "github.com/jbenet/go-ipfs/config"
22
core "github.com/jbenet/go-ipfs/core"
23
daemon "github.com/jbenet/go-ipfs/core/daemon"
24
repo "github.com/jbenet/go-ipfs/repo"
25
+ config "github.com/jbenet/go-ipfs/repo/config"
26
updates "github.com/jbenet/go-ipfs/updates"
27
u "github.com/jbenet/go-ipfs/util"
28
"github.com/jbenet/go-ipfs/util/debugerror"
cmd/ipfs/tour.go
+1
-1
@@ -8,7 +8,7 @@ import (
8
"os"
9
10
cmds "github.com/jbenet/go-ipfs/commands"
11
- config "github.com/jbenet/go-ipfs/config"
11
+ config "github.com/jbenet/go-ipfs/repo/config"
12
tour "github.com/jbenet/go-ipfs/tour"
13
)
14
commands/http/client.go
+1
-1
@@ -11,7 +11,7 @@ import (
11
"strings"
12
13
cmds "github.com/jbenet/go-ipfs/commands"
14
- config "github.com/jbenet/go-ipfs/config"
14
+ config "github.com/jbenet/go-ipfs/repo/config"
15
)
16
17
const (
commands/request.go
+1
-1
@@ -8,8 +8,8 @@ import (
8
9
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
10
11
- "github.com/jbenet/go-ipfs/config"
11
"github.com/jbenet/go-ipfs/core"
12
+ "github.com/jbenet/go-ipfs/repo/config"
13
u "github.com/jbenet/go-ipfs/util"
14
)
15
core/bootstrap.go
+1
-1
@@ -6,10 +6,10 @@ import (
6
"sync"
7
"time"
8
9
- config "github.com/jbenet/go-ipfs/config"
9
host "github.com/jbenet/go-ipfs/p2p/host"
10
inet "github.com/jbenet/go-ipfs/p2p/net"
11
peer "github.com/jbenet/go-ipfs/p2p/peer"
12
+ config "github.com/jbenet/go-ipfs/repo/config"
13
dht "github.com/jbenet/go-ipfs/routing/dht"
14
lgbl "github.com/jbenet/go-ipfs/util/eventlog/loggables"
15
math2 "github.com/jbenet/go-ipfs/util/math2"
core/commands/bootstrap.go
+1
-1
@@ -5,7 +5,7 @@ import (
5
"io"
6
7
cmds "github.com/jbenet/go-ipfs/commands"
8
- config "github.com/jbenet/go-ipfs/config"
8
+ config "github.com/jbenet/go-ipfs/repo/config"
9
u "github.com/jbenet/go-ipfs/util"
10
errors "github.com/jbenet/go-ipfs/util/debugerror"
11
)
core/commands/config.go
+1
-1
@@ -10,7 +10,7 @@ import (
10
"os/exec"
11
12
cmds "github.com/jbenet/go-ipfs/commands"
13
- config "github.com/jbenet/go-ipfs/config"
13
+ config "github.com/jbenet/go-ipfs/repo/config"
14
u "github.com/jbenet/go-ipfs/util"
15
)
16
core/commands/mount_unix.go
+1
-1
@@ -9,7 +9,7 @@ import (
9
"time"
10
11
cmds "github.com/jbenet/go-ipfs/commands"
12
- config "github.com/jbenet/go-ipfs/config"
12
+ config "github.com/jbenet/go-ipfs/repo/config"
13
core "github.com/jbenet/go-ipfs/core"
14
ipns "github.com/jbenet/go-ipfs/fuse/ipns"
15
mount "github.com/jbenet/go-ipfs/fuse/mount"
core/commands/version.go
+1
-1
@@ -6,7 +6,7 @@ import (
6
"strings"
7
8
cmds "github.com/jbenet/go-ipfs/commands"
9
- config "github.com/jbenet/go-ipfs/config"
9
+ config "github.com/jbenet/go-ipfs/repo/config"
10
)
11
12
type VersionOutput struct {
core/core.go
+1
-1
@@ -11,7 +11,6 @@ import (
11
12
bstore "github.com/jbenet/go-ipfs/blocks/blockstore"
13
bserv "github.com/jbenet/go-ipfs/blockservice"
14
- config "github.com/jbenet/go-ipfs/config"
14
diag "github.com/jbenet/go-ipfs/diagnostics"
15
exchange "github.com/jbenet/go-ipfs/exchange"
16
bitswap "github.com/jbenet/go-ipfs/exchange/bitswap"
@@ -28,6 +27,7 @@ import (
27
peer "github.com/jbenet/go-ipfs/p2p/peer"
28
path "github.com/jbenet/go-ipfs/path"
29
pin "github.com/jbenet/go-ipfs/pin"
30
+ config "github.com/jbenet/go-ipfs/repo/config"
31
routing "github.com/jbenet/go-ipfs/routing"
32
dht "github.com/jbenet/go-ipfs/routing/dht"
33
util "github.com/jbenet/go-ipfs/util"
core/core_test.go
+1
-1
@@ -4,7 +4,7 @@ import (
4
"testing"
5
6
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
7
- config "github.com/jbenet/go-ipfs/config"
7
+ config "github.com/jbenet/go-ipfs/repo/config"
8
)
9
10
func TestInitialization(t *testing.T) {
core/datastore.go
+1
-1
@@ -8,7 +8,7 @@ import (
8
syncds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync"
9
ldbopts "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/opt"
10
11
- config "github.com/jbenet/go-ipfs/config"
11
+ config "github.com/jbenet/go-ipfs/repo/config"
12
u "github.com/jbenet/go-ipfs/util"
13
ds2 "github.com/jbenet/go-ipfs/util/datastore2"
14
"github.com/jbenet/go-ipfs/util/debugerror"
p2p/protocol/identify/id.go
+1
-1
@@ -9,7 +9,7 @@ import (
9
semver "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver"
10
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
11
12
- config "github.com/jbenet/go-ipfs/config"
12
+ config "github.com/jbenet/go-ipfs/repo/config"
13
eventlog "github.com/jbenet/go-ipfs/util/eventlog"
14
15
host "github.com/jbenet/go-ipfs/p2p/host"
repo/config/config.go
renamed
repo/config/config_test.go
renamed
repo/config/serialize.go
renamed
repo/config/version.go
renamed
repo/config/version_test.go
renamed
repo/logs.go
+1
-1
@@ -1,7 +1,7 @@
1
package repo
2
3
import (
4
- config "github.com/jbenet/go-ipfs/config"
4
+ config "github.com/jbenet/go-ipfs/repo/config"
5
util "github.com/jbenet/go-ipfs/util"
6
eventlog "github.com/jbenet/go-ipfs/util/eventlog"
7
)
updates/updates.go
+1
-1
@@ -5,7 +5,7 @@ import (
5
"os"
6
"time"
7
8
- config "github.com/jbenet/go-ipfs/config"
8
+ config "github.com/jbenet/go-ipfs/repo/config"
9
u "github.com/jbenet/go-ipfs/util"
10
11
semver "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver"
updates/updates_test.go
+1
-1
@@ -4,7 +4,7 @@ import (
4
"testing"
5
6
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver"
7
- "github.com/jbenet/go-ipfs/config"
7
+ "github.com/jbenet/go-ipfs/repo/config"
8
)
9
10
// TestParseVersion just makes sure that we dont commit a bad version number