Skip to content

Commit 0785f39

Browse files
committed
Fix #1347: offline flag should not print 'Downloading' message
1 parent e2ef8e9 commit 0785f39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Spago/Command/Fetch.purs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ run { packages: packagesRequestedToInstall, ensureRanges, isTest, isRepl } = do
217217
pure $ Map.union supportDeps $ Map.union deps.test deps.core
218218

219219
-- then for every package we have we try to download it, and copy it in the local cache
220-
logInfo "Downloading dependencies..."
220+
{ offline } <- ask
221+
logInfo case offline of
222+
Offline -> "Checking dependencies..."
223+
_ -> "Downloading dependencies..."
221224
fetchPackagesToLocalCache depsToFetch
222225

223226
-- We return the dependencies, going through the lockfile write if we need to

0 commit comments

Comments
 (0)