
remote-repo: myhackage:http://myhackage/packages However, when I try to unpack my package with cabal: $ cabal unpack MyPackage Downloading MyPackage-0.0.1... cabal: Failed to download http://myhackage/packages/package/MyPackage-0.0.1.tar.gz : ErrorMisc "Unsucessful HTTP code: 404"
Why is cabal even making this request? Why is it not making the request to http://myhackage/packages/MyPackage/0.0.1/MyPackage-0.0.1.tar.gz
Seems to be a hardcoded difference in repo layouts, in Distribution/Client/Fetch.hs:packageURI . Refers to repo layouts for current hackage and future package servers, although the new docs (from an old GSoC project) and implementation do not appear to be in synch: http://hackage.haskell.org/trac/hackage/wiki/HackageDB http://hackage.haskell.org/trac/hackage/wiki/HackageDB/2.0/OldURIs http://hackage.haskell.org/trac/hackage/wiki/HackageDB/2.0/URIs Btw, I've opened a couple of related tickets: - please clarify/document --remote-repo http://hackage.haskell.org/trac/hackage/ticket/759 - expose existing functionality: fetchPackage/unpackPackage http://hackage.haskell.org/trac/hackage/ticket/758 Claus