File tree 1 file changed +4
-1
lines changed
cabal-install/src/Distribution/Client 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1374,13 +1374,16 @@ syncAndReadSourcePackagesRemoteRepos
1374
1374
-- For syncing we don't care about different 'SourceRepo' values that
1375
1375
-- are just different subdirs in the same repo.
1376
1376
-- Do not sync source repositories when `--offline` flag applied.
1377
- unless offlineMode $
1377
+ if not offlineMode then
1378
1378
syncSourceRepos
1379
1379
verbosity
1380
1380
vcs
1381
1381
[ (repo, repoPath)
1382
1382
| (repo, _, repoPath) <- repoGroupWithPaths
1383
1383
]
1384
+ else do
1385
+ liftIO . warn verbosity $ " --offline was specified, skipping sync of repositories:"
1386
+ liftIO . for_ repoGroupWithPaths $ \ (repo,_,_) -> warn verbosity $ srpLocation repo
1384
1387
1385
1388
-- Run post-checkout-command if it is specified
1386
1389
for_ repoGroupWithPaths $ \ (repo, _, repoPath) ->
You can’t perform that action at this time.
0 commit comments