mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fix(helm): home env not set on Windows
When setting $HELM_HOME, only $HOME was considered. This variable is not always present on Windows.
This commit is contained in:
parent
fab6d2ff83
commit
ece9486182
1 changed files with 2 additions and 1 deletions
|
|
@ -28,11 +28,12 @@ import (
|
|||
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
"k8s.io/client-go/util/homedir"
|
||||
"k8s.io/helm/pkg/helm/helmpath"
|
||||
)
|
||||
|
||||
// DefaultHelmHome is the default HELM_HOME.
|
||||
var DefaultHelmHome = filepath.Join("$HOME", ".helm")
|
||||
var DefaultHelmHome = filepath.Join(homedir.HomeDir(), ".helm")
|
||||
|
||||
// EnvSettings describes all of the environment settings.
|
||||
type EnvSettings struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue