From 3c1de2e667f4ff99e2f05993e9fb5e66b1c77b68 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 26 Jun 2023 13:45:22 +0200 Subject: [PATCH] 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 --- pkg/homedir/homedir.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/homedir/homedir.go b/pkg/homedir/homedir.go index 7f225b94ac..590683206c 100644 --- a/pkg/homedir/homedir.go +++ b/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 }