Skip to content
New issue

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

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

Already on GitHub? # to your account

Option to upload package candidates to Hackage #5032

Closed
yairchu opened this issue Sep 13, 2019 · 2 comments
Closed

Option to upload package candidates to Hackage #5032

yairchu opened this issue Sep 13, 2019 · 2 comments

Comments

@yairchu
Copy link

yairchu commented Sep 13, 2019

stack upload should have an option to upload a package candidate rather than a package.

Note that hackage doesn't generate haddocks for package candidates automatically, but one can upload them manually and it would be very useful if the upload would also do that, which can be done by

cp -r `stack path --dist-dir`/doc/html/PACKAGE PACKAGE-VERSION-docs
tar -c -v -z --format=ustar -f PACKAGE-VERSION-docs.tar.gz PACKAGE-VERSION-docs
curl -X PUT -H 'Content-Type: application/x-tar' -H 'Content-Encoding: gzip' --data-binary "@PACKAGE-VERSION-docs.tar.gz" "https://USERNAME:PASSWORD@hackage.haskell.org/package/PACKAGE-VERSION/candidate/docs"

(command based on a script by @ChrisPenner, which is for uploading docs for non-candidate packages)

@dbaynard
Copy link
Contributor

Possibly one for the wishlist?

@mpilgrem
Copy link
Member

I am closing as this feature was implemented in Stack 2.7.1.

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

No branches or pull requests

3 participants