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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user