Commit ec5db777 authored by Janos Guljas's avatar Janos Guljas

use os.UserHomeDir instead github.com/mitchellh/go-homedir

parent d0f578de
...@@ -6,10 +6,10 @@ package cmd ...@@ -6,10 +6,10 @@ package cmd
import ( import (
"errors" "errors"
"os"
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/mitchellh/go-homedir"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
) )
...@@ -113,7 +113,7 @@ func (c *command) setHomeDir() (err error) { ...@@ -113,7 +113,7 @@ func (c *command) setHomeDir() (err error) {
if c.homeDir != "" { if c.homeDir != "" {
return return
} }
dir, err := homedir.Dir() dir, err := os.UserHomeDir()
if err != nil { if err != nil {
return err return err
} }
......
...@@ -14,7 +14,6 @@ require ( ...@@ -14,7 +14,6 @@ require (
github.com/libp2p/go-libp2p-quic-transport v0.2.2 github.com/libp2p/go-libp2p-quic-transport v0.2.2
github.com/libp2p/go-libp2p-secio v0.2.1 github.com/libp2p/go-libp2p-secio v0.2.1
github.com/libp2p/go-libp2p-tls v0.1.3 github.com/libp2p/go-libp2p-tls v0.1.3
github.com/mitchellh/go-homedir v1.1.0
github.com/multiformats/go-multiaddr v0.2.0 github.com/multiformats/go-multiaddr v0.2.0
github.com/multiformats/go-multistream v0.1.0 github.com/multiformats/go-multistream v0.1.0
github.com/prometheus/client_golang v1.3.0 github.com/prometheus/client_golang v1.3.0
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment