Open tomjaguarpaw opened 8 months ago
Not by any chance an index-state
setting in your project file?, like:
index-state: hackage.haskell.org 2023-04-03T14:24:39Z
Also, what is in your cabal config file? E.g. I have
repository hackage.haskell.org
url: http://hackage.haskell.org/
secure: True
remote-repo-cache: /Users/abel/.cabal/packages
Dug into the .json
files in your repo cache?
(Sorry, I am just throwing random things at you, but maybe this random feed nevertheless helps you on your bug chase...)
Another random thought: It is not by any chance an XDG issue that cabal looks for the repo cache in two different places?
Describe the bug
If I run
cabal update
I get the index-state from2024-02-21T10:56:14Z
which is several days out of date.To Reproduce
Expected behavior
A more recent index-state
System information
Additional context
In theory this could be a hackage-server issue, but I deduced it to be a cabal issue because of the following. If I run with
-v
I getand then if I run
so at least the
http://hackage.haskell.org/timestamp.json
has the correct timestamp. Then if I move my.cabal
directory away and try afresh I get the correct index-stateAfter having done that, if I move
.cabal.away
back to.cabal
the issue no longer appears:But then if I
then the issue comes back
I have absolutely no idea what's going on here, why
~/.config/cabal/config
is relevant, and why~/.config/cabal/config
and~/.cabal
shouldn't both exist. (Maybe it means~/.cabal/config
rather than~/.cabal
).