Parallelize provider installation (#2729)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh
2025-12-01 11:55:53 -05:00
committed by GitHub
parent 607d74c882
commit 5e7397b8a3
8 changed files with 306 additions and 91 deletions

View File

@@ -960,6 +960,8 @@ func (c *InitCommand) getProviders(ctx context.Context, config *configs.Config,
}
},
}
// Ensure that events emitted on multiple routines do not trigger race conditions
evts = evts.Sync()
ctx = evts.OnContext(ctx)
mode := providercache.InstallNewProvidersOnly