Skip to content

Commit

Permalink
fix: mannually undo import github.com/TRON-US/lib; build green
Browse files Browse the repository at this point in the history
  • Loading branch information
Shengwen Yu authored and jin-tron committed Jun 8, 2019
1 parent e91a84f commit f5d75e2
Show file tree
Hide file tree
Showing 114 changed files with 219 additions and 228 deletions.
4 changes: 2 additions & 2 deletions assets/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

cid "github.com/ipfs/go-cid"
files "github.com/ipfs/go-ipfs-files"
iface "github.com/TRON-US/interface-go-btfs-core"
options "github.com/TRON-US/interface-go-btfs-core/options"
iface "github.com/ipfs/interface-go-ipfs-core"
options "github.com/ipfs/interface-go-ipfs-core/options"

// this import keeps gx from thinking the dep isn't used
_ "github.com/ipfs/dir-index-html"
Expand Down
2 changes: 1 addition & 1 deletion cmd/btfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/hashicorp/go-multierror"
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
util "github.com/ipfs/go-ipfs-util"
mprome "github.com/ipfs/go-metrics-prometheus"
goprocess "github.com/jbenet/goprocess"
Expand Down
4 changes: 2 additions & 2 deletions cmd/btfs/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
fsrepo "github.com/TRON-US/go-btfs/repo/fsrepo"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
config "github.com/TRON-US/go-btfs-config"
cmds "github.com/ipfs/go-ipfs-cmds"
config "github.com/ipfs/go-ipfs-config"
files "github.com/ipfs/go-ipfs-files"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/btfs/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

commands "github.com/TRON-US/go-btfs/core/commands"

cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

// This is the CLI root, used for executing commands accessible to CLI clients.
Expand Down
8 changes: 4 additions & 4 deletions cmd/btfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
fsrepo "github.com/TRON-US/go-btfs/repo/fsrepo"

osh "github.com/Kubuxu/go-os-helper"
cmds "github.com/TRON-US/go-btfs-cmds"
"github.com/TRON-US/go-btfs-cmds/cli"
"github.com/TRON-US/go-btfs-cmds/http"
config "github.com/TRON-US/go-btfs-config"
cmds "github.com/ipfs/go-ipfs-cmds"
"github.com/ipfs/go-ipfs-cmds/cli"
"github.com/ipfs/go-ipfs-cmds/http"
config "github.com/ipfs/go-ipfs-config"
u "github.com/ipfs/go-ipfs-util"
logging "github.com/ipfs/go-log"
loggables "github.com/libp2p/go-libp2p-loggables"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfswatch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
fsrepo "github.com/TRON-US/go-btfs/repo/fsrepo"

fsnotify "github.com/fsnotify/fsnotify"
config "github.com/TRON-US/go-btfs-config"
config "github.com/ipfs/go-ipfs-config"
files "github.com/ipfs/go-ipfs-files"
process "github.com/jbenet/goprocess"
homedir "github.com/mitchellh/go-homedir"
Expand Down
8 changes: 4 additions & 4 deletions commands/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
coreapi "github.com/TRON-US/go-btfs/core/coreapi"
loader "github.com/TRON-US/go-btfs/plugin/loader"

"github.com/TRON-US/go-btfs-cmds"
config "github.com/TRON-US/go-btfs-config"
"github.com/ipfs/go-ipfs-cmds"
config "github.com/ipfs/go-ipfs-config"
logging "github.com/ipfs/go-log"
coreiface "github.com/TRON-US/interface-go-btfs-core"
options "github.com/TRON-US/interface-go-btfs-core/options"
coreiface "github.com/ipfs/interface-go-ipfs-core"
options "github.com/ipfs/interface-go-ipfs-core/options"
)

var log = logging.Logger("command")
Expand Down
2 changes: 1 addition & 1 deletion core/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
math2 "github.com/TRON-US/go-btfs/thirdparty/math2"
lgbl "github.com/libp2p/go-libp2p-loggables"

config "github.com/TRON-US/go-btfs-config"
config "github.com/ipfs/go-ipfs-config"
goprocess "github.com/jbenet/goprocess"
procctx "github.com/jbenet/goprocess/context"
periodicproc "github.com/jbenet/goprocess/periodic"
Expand Down
2 changes: 1 addition & 1 deletion core/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

config "github.com/TRON-US/go-btfs-config"
config "github.com/ipfs/go-ipfs-config"
pstore "github.com/libp2p/go-libp2p-peerstore"
testutil "github.com/libp2p/go-testutil"
)
Expand Down
4 changes: 2 additions & 2 deletions core/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import (
retry "github.com/ipfs/go-datastore/retrystore"
dsync "github.com/ipfs/go-datastore/sync"
bstore "github.com/ipfs/go-ipfs-blockstore"
cfg "github.com/TRON-US/go-btfs-config"
cfg "github.com/ipfs/go-ipfs-config"
offline "github.com/ipfs/go-ipfs-exchange-offline"
offroute "github.com/ipfs/go-ipfs-routing/offline"
ipns "github.com/ipfs/go-ipns"
dag "github.com/ipfs/go-merkledag"
metrics "github.com/ipfs/go-metrics-interface"
resolver "github.com/TRON-US/go-path/resolver"
resolver "github.com/ipfs/go-path/resolver"
uio "github.com/ipfs/go-unixfs/io"
goprocessctx "github.com/jbenet/goprocess/context"
libp2p "github.com/libp2p/go-libp2p"
Expand Down
2 changes: 1 addition & 1 deletion core/commands/active.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
oldcmds "github.com/TRON-US/go-btfs/commands"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions core/commands/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/TRON-US/go-btfs/core/commands/cmdenv"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
"github.com/ipfs/go-ipfs-files"
coreiface "github.com/TRON-US/interface-go-btfs-core"
"github.com/TRON-US/interface-go-btfs-core/options"
coreiface "github.com/ipfs/interface-go-ipfs-core"
"github.com/ipfs/interface-go-ipfs-core/options"
mh "github.com/multiformats/go-multihash"
pb "gopkg.in/cheggaaa/pb.v1"
)
Expand Down
2 changes: 1 addition & 1 deletion core/commands/bitswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
decision "github.com/ipfs/go-bitswap/decision"
cidutil "github.com/ipfs/go-cidutil"
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
peer "github.com/libp2p/go-libp2p-peer"
)

Expand Down
6 changes: 3 additions & 3 deletions core/commands/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
cmdenv "github.com/TRON-US/go-btfs/core/commands/cmdenv"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
coreiface "github.com/TRON-US/interface-go-btfs-core"
options "github.com/TRON-US/interface-go-btfs-core/options"
cmds "github.com/ipfs/go-ipfs-cmds"
coreiface "github.com/ipfs/interface-go-ipfs-core"
options "github.com/ipfs/interface-go-ipfs-core/options"
mh "github.com/multiformats/go-multihash"
)

Expand Down
4 changes: 2 additions & 2 deletions core/commands/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
fsrepo "github.com/TRON-US/go-btfs/repo/fsrepo"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
config "github.com/TRON-US/go-btfs-config"
cmds "github.com/ipfs/go-ipfs-cmds"
config "github.com/ipfs/go-ipfs-config"
)

type BootstrapOutput struct {
Expand Down
4 changes: 2 additions & 2 deletions core/commands/cat.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/TRON-US/go-btfs/core/commands/cmdenv"

"github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
"github.com/ipfs/go-ipfs-files"
"github.com/TRON-US/interface-go-btfs-core"
"github.com/ipfs/interface-go-ipfs-core"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core/commands/cid.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
cid "github.com/ipfs/go-cid"
cidutil "github.com/ipfs/go-cidutil"
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
verifcid "github.com/ipfs/go-verifcid"
mbase "github.com/multiformats/go-multibase"
mhash "github.com/multiformats/go-multihash"
Expand Down
2 changes: 1 addition & 1 deletion core/commands/cmdenv/cidbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
cid "github.com/ipfs/go-cid"
cidenc "github.com/ipfs/go-cidutil/cidenc"
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
mbase "github.com/multiformats/go-multibase"
)

Expand Down
8 changes: 4 additions & 4 deletions core/commands/cmdenv/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"github.com/TRON-US/go-btfs/commands"
"github.com/TRON-US/go-btfs/core"

cmds "github.com/TRON-US/go-btfs-cmds"
config "github.com/TRON-US/go-btfs-config"
cmds "github.com/ipfs/go-ipfs-cmds"
config "github.com/ipfs/go-ipfs-config"
logging "github.com/ipfs/go-log"
coreiface "github.com/TRON-US/interface-go-btfs-core"
options "github.com/TRON-US/interface-go-btfs-core/options"
coreiface "github.com/ipfs/interface-go-ipfs-core"
options "github.com/ipfs/interface-go-ipfs-core/options"
)

var log = logging.Logger("core/commands/cmdenv")
Expand Down
2 changes: 1 addition & 1 deletion core/commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"

"github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

type commandEncoder struct {
Expand Down
2 changes: 1 addition & 1 deletion core/commands/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

func collectPaths(prefix string, cmd *cmds.Command, out map[string]struct{}) {
Expand Down
4 changes: 2 additions & 2 deletions core/commands/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

"github.com/elgris/jsondiff"
"github.com/ipfs/go-ipfs-cmdkit"
"github.com/TRON-US/go-btfs-cmds"
"github.com/TRON-US/go-btfs-config"
"github.com/ipfs/go-ipfs-cmds"
"github.com/ipfs/go-ipfs-config"
)

// ConfigUpdateOutput is config profile apply command's output
Expand Down
6 changes: 3 additions & 3 deletions core/commands/dag/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
cid "github.com/ipfs/go-cid"
cidenc "github.com/ipfs/go-cidutil/cidenc"
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
files "github.com/ipfs/go-ipfs-files"
ipld "github.com/ipfs/go-ipld-format"
path "github.com/TRON-US/go-path"
iface "github.com/TRON-US/interface-go-btfs-core"
path "github.com/ipfs/go-path"
iface "github.com/ipfs/interface-go-ipfs-core"
mh "github.com/multiformats/go-multihash"
)

Expand Down
4 changes: 2 additions & 2 deletions core/commands/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (

cid "github.com/ipfs/go-cid"
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
ipld "github.com/ipfs/go-ipld-format"
dag "github.com/ipfs/go-merkledag"
path "github.com/TRON-US/go-path"
path "github.com/ipfs/go-path"
peer "github.com/libp2p/go-libp2p-peer"
pstore "github.com/libp2p/go-libp2p-peerstore"
routing "github.com/libp2p/go-libp2p-routing"
Expand Down
2 changes: 1 addition & 1 deletion core/commands/diag.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package commands

import (
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

var DiagCmd = &cmds.Command{
Expand Down
4 changes: 2 additions & 2 deletions core/commands/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

ncmd "github.com/TRON-US/go-btfs/core/commands/name"
namesys "github.com/TRON-US/go-btfs/namesys"
nsopts "github.com/TRON-US/interface-go-btfs-core/options/namesys"
nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core/commands/external.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

func ExternalBinary() *cmds.Command {
Expand Down
6 changes: 3 additions & 3 deletions core/commands/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ import (
cid "github.com/ipfs/go-cid"
cidenc "github.com/ipfs/go-cidutil/cidenc"
"github.com/ipfs/go-ipfs-cmdkit"
"github.com/TRON-US/go-btfs-cmds"
"github.com/ipfs/go-ipfs-cmds"
"github.com/ipfs/go-ipfs-exchange-offline"
ipld "github.com/ipfs/go-ipld-format"
logging "github.com/ipfs/go-log"
dag "github.com/ipfs/go-merkledag"
"github.com/TRON-US/go-mfs"
"github.com/ipfs/go-mfs"
ft "github.com/ipfs/go-unixfs"
"github.com/TRON-US/interface-go-btfs-core"
"github.com/ipfs/interface-go-ipfs-core"
mh "github.com/multiformats/go-multihash"
)

Expand Down
2 changes: 1 addition & 1 deletion core/commands/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

var FileStoreCmd = &cmds.Command{
Expand Down
4 changes: 2 additions & 2 deletions core/commands/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/TRON-US/go-btfs/core/commands/e"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
files "github.com/ipfs/go-ipfs-files"
iface "github.com/TRON-US/interface-go-btfs-core"
iface "github.com/ipfs/interface-go-ipfs-core"
"github.com/whyrusleeping/tar-utils"
"gopkg.in/cheggaaa/pb.v1"
)
Expand Down
2 changes: 1 addition & 1 deletion core/commands/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

func TestGetOutputPath(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion core/commands/helptext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
)

func checkHelptextRecursive(t *testing.T, name []string, c *cmds.Command) {
Expand Down
2 changes: 1 addition & 1 deletion core/commands/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
cmdenv "github.com/TRON-US/go-btfs/core/commands/cmdenv"

"github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
ic "github.com/libp2p/go-libp2p-crypto"
kb "github.com/libp2p/go-libp2p-kbucket"
"github.com/libp2p/go-libp2p-peer"
Expand Down
4 changes: 2 additions & 2 deletions core/commands/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
cmdenv "github.com/TRON-US/go-btfs/core/commands/cmdenv"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
options "github.com/TRON-US/interface-go-btfs-core/options"
cmds "github.com/ipfs/go-ipfs-cmds"
options "github.com/ipfs/interface-go-ipfs-core/options"
)

var KeyCmd = &cmds.Command{
Expand Down
2 changes: 1 addition & 1 deletion core/commands/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"

cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/TRON-US/go-btfs-cmds"
cmds "github.com/ipfs/go-ipfs-cmds"
logging "github.com/ipfs/go-log"
lwriter "github.com/ipfs/go-log/writer"
)
Expand Down
Loading

0 comments on commit f5d75e2

Please sign in to comment.