We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46c35d4 commit fdc3cf6Copy full SHA for fdc3cf6
dir/path.go
@@ -86,6 +86,8 @@ func userConfigDirPath() string {
86
if err != nil {
87
// fallback to current directory
88
userDir = "."
89
+ UserConfigDir = "." + notation
90
+ return UserConfigDir
91
}
92
// set user config
93
UserConfigDir = filepath.Join(userDir, notation)
dir/path_test.go
@@ -42,8 +42,8 @@ func Test_NoHomeVariable(t *testing.T) {
42
setup()
43
userConfigDir = os.UserConfigDir
44
got := userConfigDirPath()
45
- if got != "notation" {
46
- t.Fatalf(`UserConfigDirPath() = %q, want "notation"`, UserConfigDir)
+ if got != ".notation" {
+ t.Fatalf(`UserConfigDirPath() = %q, want ".notation"`, UserConfigDir)
47
48
49
0 commit comments