Update pkg/downloader/manager.go

Co-authored-by: Terry Howe <terrylhowe@gmail.com>
Signed-off-by: Anis Khan <2815766+aniskhan001@users.noreply.github.com>
pull/32533/head
Anis Khan 4 weeks ago committed by GitHub
parent a7e8107b5a
commit 7a0bf95a5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -272,7 +272,7 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error {
// callers race on the same directory.
tmpPath, err := os.MkdirTemp(m.ChartPath, fmt.Sprintf("tmpcharts-%d-*", os.Getpid()))
if err != nil {
return err
return fmt.Errorf("unable to create temporary directory in '%s': %w", m.ChartPath, err)
}
defer os.RemoveAll(tmpPath)

Loading…
Cancel
Save