Skip to content

Commit adeb4ca

Browse files
committed
fix(dependencyBuild): prevent race condition in concurrent helm dependency
Signed-off-by: Suleiman Dibirov <[email protected]>
1 parent 15f76cf commit adeb4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/downloader/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error {
246246
}
247247

248248
destPath := filepath.Join(m.ChartPath, "charts")
249-
tmpPath := filepath.Join(m.ChartPath, "tmpcharts")
249+
tmpPath := filepath.Join(m.ChartPath, fmt.Sprintf("tmpcharts-%d", os.Getpid()))
250250

251251
// Check if 'charts' directory is not actually a directory. If it does not exist, create it.
252252
if fi, err := os.Stat(destPath); err == nil {

0 commit comments

Comments
 (0)