Skip to content

Option to upload package candidates to Hackage #5032

Closed

Description

@yairchu

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:[email protected]/package/PACKAGE-VERSION/candidate/docs"

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

Activity

  1. dbaynard commented on Sep 22, 2019

    @dbaynard
    Contributor

    Possibly one for the wishlist?

  2. mpilgrem commented on Mar 11, 2024

    @mpilgrem
    Member

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions