
Aha, I figured out the problem. I needed to add the lines
remote-repo: myname:file://path-to-hackage
remote-repo-cache: cache-file
to my ~/.cabal/config
Now it works fine. I wish that the instructions were a little less obscure.
Victor
On Thu, Mar 3, 2016 at 12:26 PM, Victor Miller
Hi John, I just got around to installing the downloaded hackage mirror, and I noticed that its structure is different than the one that I downloaded last June -- in the old one there are files
00-index.cache 00-index.tar and a bunch of subdirectories, one per package. Within each of those is a version subdirectory which contains a cabal file and a tar.gz file of the package files.
In the new one there are files 00-checksums.bak 00-checksums.dat 00-index.tar.gz
and a directory called package
That directory contains directories called package-name-version and a corresponding file called package-name-version.tar.gz
one for each package and version
My version of cabal 1.22 doesn't understand that. Do I need a new version of cabal, or do I have to process the files somehow?
Victor
On Wed, Feb 24, 2016 at 4:45 PM, John Wiegley
wrote: > Victor Miller
writes: John, Thanks very much for hackage-mirror. I'm running it now and it appears to be working as advertised. Thanks to everyone else who responded.
I committed a fix very recently to the 'pipes' branch that you may need, since there is one package on Hackage that is missing and thus cannot be downloaded.
-- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2