Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
ec5db777
Commit
ec5db777
authored
Feb 03, 2020
by
Janos Guljas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use os.UserHomeDir instead github.com/mitchellh/go-homedir
parent
d0f578de
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
cmd.go
cmd/bee/cmd/cmd.go
+2
-2
go.mod
go.mod
+0
-1
go.sum
go.sum
+29
-2
No files found.
cmd/bee/cmd/cmd.go
View file @
ec5db777
...
@@ -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
.
UserHome
Dir
()
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
go.mod
View file @
ec5db777
...
@@ -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
...
...
go.sum
View file @
ec5db777
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment