Closed
Description
If I have an index-state
in the project file that is newer can we please make it an error rather than a warning when cabal build
is invoked?
cabal/cabal-install/src/Distribution/Client/IndexUtils.hs
Lines 278 to 283 in ebfd8c7
-- cabal.project
packages: .
index-state: 2022-03-22T14:16:26Z
> cabal build all --enable-tests
Warning: Requested index-state 2022-03-22T14:16:26Z is newer than
'hackage.haskell.org'! Falling back to older state (2022-03-14T21:07:44Z).
Resolving dependencies..
We get a warning. It is on us to call cabal update
. I'm unhappy that this is a warning and not an error as I don't think it makes sense for cabal build
to proceed. Also often there is a lot of build output and it would be easy to miss this warning.