Skip to content

Commit

Permalink
synchronize source repos concurrently
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Mar 26, 2024
1 parent d26c3b8 commit 6de4dd9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cabal-install/src/Distribution/Client/ProjectConfig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1338,12 +1338,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'
Expand Down
Binary file not shown.

0 comments on commit 6de4dd9

Please sign in to comment.