소스 검색

pkg/homedir: deprecate Key() utility

This utility was only used in tests, and internally, and no longer
used since we switch to using os.UserHomeDir() from stdlib.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 년 전
부모
커밋
3c1de2e667
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      pkg/homedir/homedir.go

+ 2 - 0
pkg/homedir/homedir.go

@@ -8,6 +8,8 @@ import (
 
 // Key returns the env var name for the user's home dir based on
 // the platform being run on.
+//
+// Deprecated: this function is no longer used, and will be removed in the next release.
 func Key() string {
 	return envKeyName
 }