浏览代码

Merge pull request #44844 from thaJeztah/23.0_backport_homedir_nolinux_compat

[23.0 backport] Add GetLibHome stub for non-linux OS
Bjorn Neergaard 2 年之前
父节点
当前提交
9fd854976f
共有 1 个文件被更改,包括 5 次插入0 次删除
  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")
+}