Skip to content

Commit

Permalink
Don't error if package index is missing
Browse files Browse the repository at this point in the history
All of the packages Cabal needs may already be present in the local
package database; we don't know yet!

This is a partial revert of haskell#8944.

See: haskell#8944 (comment)
  • Loading branch information
9999years committed Sep 9, 2024
1 parent 2a6bed5 commit ec242b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cabal-install/src/Distribution/Client/IndexUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ readRepoIndex verbosity repoCtxt repo idxState =
if isDoesNotExistError e
then do
case repo of
RepoRemote{..} -> dieWithException verbosity $ MissingPackageList repoRemote
RepoSecure{..} -> dieWithException verbosity $ MissingPackageList repoRemote
RepoRemote{..} -> warn verbosity $ exceptionMessageCabalInstall $ MissingPackageList repoRemote
RepoSecure{..} -> warn verbosity $ exceptionMessageCabalInstall $ MissingPackageList repoRemote
RepoLocalNoIndex local _ ->
warn verbosity $
"Error during construction of local+noindex "
Expand Down

0 comments on commit ec242b1

Please sign in to comment.