The Comonad.Reader » Infrastructure http://comonad.com/reader types, (co)monads, substructural logic Thu, 02 May 2013 14:19:12 +0000 http://wordpress.org/?v=2.8.4 en hourly 1 Working around Hackage Outages http://comonad.com/reader/2012/hackage-mirror/ http://comonad.com/reader/2012/hackage-mirror/#comments Wed, 29 Aug 2012 19:51:49 +0000 Edward Kmett http://comonad.com/reader/?p=651 Luite Stegeman has a mirror of the packages from Hackage.

He uses it to power his incredibly useful hdiff website.

During a Hackage outage, you can set up your local cabal configuration to point to it instead by (temporarily) replacing the remote-repo in your ~/.cabal/config file with:


remote-repo:
hdiff.luite.com:http://hdiff.luite.com/packages/archive

and then running cabal update.

I have a ~/.cabal/config that I use whenever hackage goes down in my lens package.

If you use travis-ci, you can avoid build failures during hackage outages by first copying that config to ~/.cabal/config during before_install. -- You'll still be stuck waiting while it first tries to refresh from the real hackage server, but it only adds a few minutes to buildbot times.

]]>
http://comonad.com/reader/2012/hackage-mirror/feed/ 0