diff --git a/cabal-install/src/Distribution/Client/ProjectConfig.hs b/cabal-install/src/Distribution/Client/ProjectConfig.hs index 89de6ea869c..26a86ec1c4a 100644 --- a/cabal-install/src/Distribution/Client/ProjectConfig.hs +++ b/cabal-install/src/Distribution/Client/ProjectConfig.hs @@ -1403,12 +1403,13 @@ syncAndReadSourcePackagesRemoteRepos ] let progPathExtra = fromNubList projectConfigProgPathExtra + let numJobs = 4 -- hardcoded for now getConfiguredVCS <- delayInitSharedResources $ \repoType -> let vcs = Map.findWithDefault (error $ "Unknown VCS: " ++ prettyShow repoType) repoType knownVCSs in configureVCS verbosity progPathExtra vcs concat - <$> sequenceA + <$> sequenceConcurrentlyBoundedRebuild numJobs [ rerunIfChanged verbosity monitor repoGroup' $ do vcs' <- getConfiguredVCS repoType syncRepoGroupAndReadSourcePackages vcs' pathStem repoGroup' diff --git a/changelog.d/synchronize-source-repos-concurrently b/changelog.d/synchronize-source-repos-concurrently new file mode 100644 index 00000000000..c220ecfbb97 --- /dev/null +++ b/changelog.d/synchronize-source-repos-concurrently @@ -0,0 +1,5 @@ +synopsis: Synchronize source repositories concurrently +packages: cabal-install +prs: #0000 +significance: significant +