<div dir="ltr">Correct: cabal-install 1.x still uses the old index format (00-index). The logic is different for 01-index, in order to support incremental update (appending when possible, instead of always having to download the whole thing again like with 00-index).</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 4, 2018 at 1:38 PM, Nathan Collins <span dir="ltr"><<a href="mailto:nathan.collins@gmail.com" target="_blank">nathan.collins@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In case this confuses anyone else, I think this PSA only applies if<br>
you're using cabal-install version 2.*, but please correct me if I'm<br>
wrong.<br>
<br>
I had some ~/.cabal/packages/<a href="http://hackage.haskell.org/00-index.*" rel="noreferrer" target="_blank">hackage.<wbr>haskell.org/00-index.*</a> files, but<br>
not any 01-index.* files, and running `cabal update` didn't change<br>
that. Then I noticed I was using cabal-install version 1.24.0.2. When<br>
I upgraded to cabal-install version 2.0.0.1 and did another `cabal<br>
update` the 01-index.* files appeared.<br>
<br>
Cheers,<br>
<br>
-nathan<br>
<span class=""><br>
On Mon, Jan 1, 2018 at 5:24 PM, Gershom B <<a href="mailto:gershomb@gmail.com">gershomb@gmail.com</a>> wrote:<br>
> Dear Haskellers,<br>
><br>
> A recent update to hackage, which fixed up the 01-index.tar.gz file,<br>
> revealed a bug in existing versions of cabal-install, when index files<br>
> are cleaned up. This bug means that the `cabal update` command, which<br>
> updates the hackage index file, will fail silently and leave the old<br>
> file in place. It is easy to get things working again, but it requires<br>
> manual intervention. Here is the most straightforward way to get<br>
> things working again:<br>
><br>
> On gnu/linux or mac: rm ~/.cabal/packages/<a href="http://hackage.haskell.org/01-index.*" rel="noreferrer" target="_blank">hackage.<wbr>haskell.org/01-index.*</a><br>
> On windows: remove the same files, but from<br>
> %appdata%\cabal\packages\<a href="http://hackage.haskell.org" rel="noreferrer" target="_blank">hacka<wbr>ge.haskell.org</a><br>
><br>
> rerun `cabal update` to fetch a new 01-index.<br>
><br>
> Apologies all for the inconvenience and any confusion this may have<br>
> caused. There is a PR to fix this behavior in the works, but since the<br>
> problem is on the client side, the fix will only improve the<br>
> situations for new versions of `cabal`.<br>
><br>
> Happy New Years to all, and cheers to a very functional 2018,<br>
> Gershom<br>
><br>
> p.s.: since the problem comes in unpacking the 01-index.tar.gz into<br>
> the 01-index.tar, you can also just untar that file in place manually,<br>
> or force cabal into doing the same by running `touch<br>
> ~/.cabal/packages/<a href="http://hackage.haskell.org/01-index.tar`" rel="noreferrer" target="_blank">hackage.<wbr>haskell.org/01-index.tar`</a><br>
> ______________________________<wbr>_________________<br>
</span>> Haskell-Cafe mailing list<br>
> To (un)subscribe, modify options or view archives go to:<br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
> Only members subscribed via the mailman list are allowed to post.<br>
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div>