Merge pull request #44844 from thaJeztah/23.0_backport_homedir_nolinux_compat

[23.0 backport] Add GetLibHome stub for non-linux OS
This commit is contained in:
Bjorn Neergaard 2023-01-18 12:14:04 -07:00 committed by GitHub
commit 9fd854976f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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