fix(pkg/downloader): Use system generated temp directory

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
pull/9393/head
Josh Soref 5 years ago
parent 1f68f658a5
commit 679598897c

@ -247,7 +247,11 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error {
} }
destPath := filepath.Join(m.ChartPath, "charts") destPath := filepath.Join(m.ChartPath, "charts")
tmpPath := filepath.Join(m.ChartPath, "tmpcharts") tmpPath, err := ioutil.TempDir("", "tmpcharts-*")
if err != nil {
return errors.Wrap(err, "failed to create tmpcharts dir")
}
os.Remove(tmpPath)
// Create 'charts' directory if it doesn't already exist. // Create 'charts' directory if it doesn't already exist.
if fi, err := os.Stat(destPath); err != nil { if fi, err := os.Stat(destPath); err != nil {

Loading…
Cancel
Save