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>
This commit is contained in:
Sebastiaan van Stijn 2023-06-26 13:45:22 +02:00
parent ddd9665289
commit 3c1de2e667
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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
}