Skip to content

document cabal sdist (hackage archive) format #749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bos opened this issue May 24, 2012 · 2 comments
Open

document cabal sdist (hackage archive) format #749

bos opened this issue May 24, 2012 · 2 comments
Labels
cabal-install: cmd/sdist cabal-install: other documentation old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: enhancement
Milestone

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #759, reported by claus on 2010-11-04)

I often find myself writing example code that I'd like to distribute via cabal, but without further burdening hackage with not generally useful packages.

The source code has an undocumented(?) option --remote-repo that seems to serve that purpose, but there is little documentation, sometimes conflicting info, about how to put this to use.

Mailing list threads:

[http://www.haskell.org/pipermail/haskell-cafe/2010-November/085860.html](http://www.haskell.org/pipermail/haskell-cafe/2010-November/085860.html)
[http://www.haskell.org/pipermail/haskell-cafe/2010-November/085900.html](http://www.haskell.org/pipermail/haskell-cafe/2010-November/085900.html)

Repo layout descriptions (differs between hackage 1.0 and 2.0, which is hardcoded in cabal-install):

[http://hackage.haskell.org/trac/hackage/wiki/HackageDB](http://hackage.haskell.org/trac/hackage/wiki/HackageDB)
[http://hackage.haskell.org/trac/hackage/wiki/HackageDB/2.0/URIs](http://hackage.haskell.org/trac/hackage/wiki/HackageDB/2.0/URIs)

Related tickets: #758, comment:6:ticket:428

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2010-11-04)

I think the better solution for this use case is ticket #524 which is about making this possible:

cabal install http://code.haskell.org/~user/foo/foo-0.9.tar.gz
The problem with --remote-repo for this use case is that it creates a persistent local cache, which is not what you would want for a one-off command.

@ulysses4ever ulysses4ever changed the title document hackage archive format document cabal sdist (hackage archive) format Jun 13, 2022
@jneira
Copy link
Member

jneira commented Jul 3, 2022

afair you already could install remote tarballs from arbitrary locations so the use case would be covered without using remote repos
otoh you can refer alternative remote repos in global config
so only left document the archive format

@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: cmd/sdist cabal-install: other documentation old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: enhancement
Projects
None yet
Development

No branches or pull requests

3 participants