[Haskell-cafe] server directory layout for cabal-install?

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Mar 20 06:14:48 EDT 2009


On Thu, 2009-03-19 at 11:50 +0100, Johannes Waldmann wrote:
> Thanks. Now the 00-index.tar.gz works.
> 
> When studying the access log of my web server,
> I found that the cabal client (cabal-install/0.6.0)
> does not want $pkg/$ver/$pkg-$ver.tar.gz
> but uses  packages/$pkg-$ver/tarball  instead
> (yes, "packages" and "tarball" are constant strings).

Oh, doh! Sorry about that. It was code to work with the new hackage
server that should not have made it into a release. We were playing
around with new url schemes for the new server.

In future we want to use simply:

$base/package/$pkg-$ver.tar.gz

so eg:

http://hackage.local/package/foo-1.0.tar.gz

which we'd get via:
repos: local: http://hackage.local/

I admit it's less convenient for a passive package repo to have to use a
package/ subdir like that but for the case of a full hackage server with
all the other services it means we can find the right url for uploads
etc.

We really need to write down a proper specification of the hackage
interface.

Duncan



More information about the Haskell-Cafe mailing list