1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 23:42:20 +08:00

Use gx vendored go-ipfs-utils where possible

For the rest of the packages in util, move them to thirdparty
and update the references. util is gone!

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Jeromy
2016-02-09 10:56:19 -08:00
parent 171952b795
commit d7dab3afea
131 changed files with 130 additions and 555 deletions

View File

@ -9,7 +9,7 @@ import (
"path/filepath"
"strings"
u "github.com/ipfs/go-ipfs/util"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/mitchellh/go-homedir"
logging "gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
)
@ -48,7 +48,7 @@ func PathRoot() (string, error) {
dir := os.Getenv(EnvDir)
var err error
if len(dir) == 0 {
dir, err = u.TildeExpansion(DefaultPathRoot)
dir, err = homedir.Expand(DefaultPathRoot)
}
return dir, err
}