Skip to content

Commit 84da803

Browse files
committed
Use stdlib instead of go-homedir
1 parent bcbb85e commit 84da803

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ require (
99
github.com/huandu/xstrings v1.1.0 // indirect
1010
github.com/imdario/mergo v0.3.6 // indirect
1111
github.com/mattn/go-zglob v0.0.1
12-
github.com/mitchellh/go-homedir v1.0.0
1312
github.com/radovskyb/watcher v1.0.5
1413
github.com/spf13/pflag v1.0.3
1514
github.com/stretchr/testify v1.3.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
2020
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
2121
github.com/mattn/go-zglob v0.0.1 h1:xsEx/XUoVlI6yXjqBK062zYhRTZltCNmYPx6v+8DNaY=
2222
github.com/mattn/go-zglob v0.0.1/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo=
23-
github.com/mitchellh/go-homedir v1.0.0 h1:vKb8ShqSby24Yrqr/yDYkuFz8d0WUjys40rvnGC8aR0=
24-
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
2523
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2624
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2725
github.com/radovskyb/watcher v1.0.5 h1:wqt7gb+HjGacvFoLTKeT44C+XVPxu7bvHvKT1IvZ7rw=

task_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/go-task/task/v2"
1515
"github.com/go-task/task/v2/internal/taskfile"
1616

17-
"github.com/mitchellh/go-homedir"
1817
"github.com/stretchr/testify/assert"
1918
)
2019

@@ -479,7 +478,7 @@ func TestTaskIgnoreErrors(t *testing.T) {
479478
func TestExpand(t *testing.T) {
480479
const dir = "testdata/expand"
481480

482-
home, err := homedir.Dir()
481+
home, err := os.UserHomeDir()
483482
if err != nil {
484483
t.Errorf("Couldn't get $HOME: %v", err)
485484
}

0 commit comments

Comments
 (0)