mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fix(dependencyBuild): prevent race condition in concurrent helm dependency
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
This commit is contained in:
parent
15f76cf83c
commit
adeb4ca3d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue