From 142ecedb28f117f9114f1ade58d7b8a883e1b707 Mon Sep 17 00:00:00 2001 From: Alexander Nesterenko Date: Wed, 6 Feb 2019 21:01:01 +0200 Subject: [PATCH] Fix using custom XDG_CONFIG_HOME if available Signed-off-by: Alexander Nesterenko --- pkg/helm/helmpath/default_home_dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/helm/helmpath/default_home_dir.go b/pkg/helm/helmpath/default_home_dir.go index 88c7143bb..12c908601 100644 --- a/pkg/helm/helmpath/default_home_dir.go +++ b/pkg/helm/helmpath/default_home_dir.go @@ -27,7 +27,7 @@ import ( // - %APPDATA%\helm on Windows // - ~/Library/Preferences/helm on OSX // - $XDG_CONFIG_DIR/helm (typically ~/.config/helm for linux) -var defaultHelmHome = filepath.Join(xdg.ConfigHome(), "helm") +var defaultHelmHome = xdg.App{Name: "helm"}.ConfigPath("") // Old default helm home, it's old good ~/.helm var oldDefaultHelmHome = filepath.Join(homedir.HomeDir(), ".helm")