Skip to content
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

allow "upload" to local repository #2146

Open
ibotty opened this issue Oct 6, 2014 · 2 comments
Open

allow "upload" to local repository #2146

ibotty opened this issue Oct 6, 2014 · 2 comments

Comments

@ibotty
Copy link

ibotty commented Oct 6, 2014

hi,

i have a small shell script that does the following for package-0.1.2. it would be great if cabal could do that out of the box (using gnu tar.)

local_repo is the first repository that is specified as local-repo: in cabal.

> cabal sdist
> cp dist/package-0.1.2.tar.gz "$local_repo/package"
> tar -f "$local_repo/00-index.tar" -A package.cabal \
      --transform 's~package.cabal~package/0.1.2/package.cabal~'
@ibotty
Copy link
Author

ibotty commented Oct 6, 2014

ah. i would maybe do that myself, when given some pointers.

@ttuegel ttuegel added this to the cabal-install-1.24 milestone Apr 24, 2015
@23Skidoo 23Skidoo modified the milestones: cabal-install 1.24, cabal-install 1.26 Feb 21, 2016
@ezyang ezyang modified the milestone: cabal-install 2.0 Sep 6, 2016
@ezyang
Copy link
Contributor

ezyang commented Mar 20, 2017

This request was made for old-style local package repositories; with the new style, we would need to have hackage-repo-tool available because Cabal does not otherwise have the smarts to update the local repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants