Browse Source

Merge pull request #44835 from AdallomRoy/master

Add GetLibHome stub for non-linux OS
Bjorn Neergaard 2 years ago
parent
commit
d783e7df83
1 changed files with 5 additions and 0 deletions
  1. 5 0
      pkg/homedir/homedir_others.go

+ 5 - 0
pkg/homedir/homedir_others.go

@@ -26,3 +26,8 @@ func GetDataHome() (string, error) {
 func GetConfigHome() (string, error) {
 	return "", errors.New("homedir.GetConfigHome() is not supported on this system")
 }
+
+// GetLibHome is unsupported on non-linux system.
+func GetLibHome() (string, error) {
+	return "", errors.New("homedir.GetLibHome() is not supported on this system")
+}