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

cabal upload could by default do a sdist and upload the thus generated tar #7566

Open
andreasabel opened this issue Aug 22, 2021 · 1 comment

Comments

@andreasabel
Copy link
Member

When I do cabal upload, I get

cabal: the 'upload' command expects at least one .tar.gz archive.

If no archive is given on the command line, it could first do an sdist and then upload the thus generated tar.gz.

My workaround is the following cabal-upload shell script:

cabal sdist | tail -1 | xargs cabal upload "$@"
cabal haddock --haddock-for-hackage | tail -1 | xargs cabal upload -d "$@"
@jneira
Copy link
Member

jneira commented Aug 22, 2021

makes sense to me, related #3837 and #5064

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

2 participants