Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ux: add warning when cabal reads from no index cache #10258

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cabal-install/src/Distribution/Client/IndexUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,13 @@ readNoIndexCache verbosity index = do
either (dieWithException verbosity . CorruptedIndexCache) return =<< readNoIndexCache' index

-- we don't hash cons local repository cache, they are hopefully small
Right res -> return res
Right res -> do
warn verbosity $
concat
[ "Cabal is reading .cache file. "
, "Delete this file if the repository has changed."
]
return res

-- | Read the 'Index' cache from the filesystem. Throws IO exceptions
-- if any arise and returns Left on invalid input.
Expand Down
Loading