diff --git a/kyaml/filesys/confirmeddir.go b/kyaml/filesys/confirmeddir.go index ea6eff90ba..d4893d6589 100644 --- a/kyaml/filesys/confirmeddir.go +++ b/kyaml/filesys/confirmeddir.go @@ -17,7 +17,8 @@ type ConfirmedDir string // The directory is cleaned, no symlinks, etc. so it's // returned as a ConfirmedDir. func NewTmpConfirmedDir() (ConfirmedDir, error) { - n, err := os.MkdirTemp("", "kustomize-") + currentDir, err := os.Getwd() + n, err := os.MkdirTemp(currentDir, ".kustomize-") if err != nil { return "", err }