From 98343643a8a0d8dd4b10c97e9cba3db03d0f362d Mon Sep 17 00:00:00 2001 From: Vikky Omkar Date: Wed, 19 Aug 2020 09:16:57 +0530 Subject: [PATCH] added a line to remove tmpPath Signed-off-by: vikkyomkar --- pkg/downloader/manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/downloader/manager.go b/pkg/downloader/manager.go index bcd5dcec4..770e2fc7c 100644 --- a/pkg/downloader/manager.go +++ b/pkg/downloader/manager.go @@ -245,6 +245,7 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error { destPath := filepath.Join(m.ChartPath, "charts") tmpPath := filepath.Join(m.ChartPath, "tmpcharts") + defer os.RemoveAll(tmpPath) // Create 'charts' directory if it doesn't already exist. if fi, err := os.Stat(destPath); err != nil {