fix(dependencyBuild): prevent race condition in concurrent helm dependency

Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
(cherry picked from commit adeb4ca3d9)
release-3.15
Suleiman Dibirov 1 year ago committed by Matt Farina
parent 7413819bb9
commit f262d80d30
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -246,7 +246,7 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error {
}
destPath := filepath.Join(m.ChartPath, "charts")
tmpPath := filepath.Join(m.ChartPath, "tmpcharts")
tmpPath := filepath.Join(m.ChartPath, fmt.Sprintf("tmpcharts-%d", os.Getpid()))
// Check if 'charts' directory is not actually a directory. If it does not exist, create it.
if fi, err := os.Stat(destPath); err == nil {

Loading…
Cancel
Save