Skip to content

Commit 6fffa6b

Browse files
committed
mark usershell.HomeDir() as deprecated
1 parent 0aae37f commit 6fffa6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

agent/usershell/usershell.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
// HomeDir returns the home directory of the current user, giving
1111
// priority to the $HOME environment variable.
12+
// Deprecated: use EnvInfoer.HomeDir() instead.
1213
func HomeDir() (string, error) {
1314
// First we check the environment.
1415
homedir, err := os.UserHomeDir()

0 commit comments

Comments
 (0)