
Hi cafe, Does anyone know if there is a way to restart a documentation build on hackage? We have a package where the documentation failed to build due to a dependency lacking upper bounds. That has recently been fixed (using the new in-place cabal file editing feature), and we'd like to get documentation for our package now. Is there any way to do this (apart from uploading a new version without changes)? Erik

Use the rest API to delete the current docs. That will reschedule a doc
build.
On Thursday, July 3, 2014, Erik Hesselink
Hi cafe,
Does anyone know if there is a way to restart a documentation build on hackage? We have a package where the documentation failed to build due to a dependency lacking upper bounds. That has recently been fixed (using the new in-place cabal file editing feature), and we'd like to get documentation for our package now. Is there any way to do this (apart from uploading a new version without changes)?
Erik _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org javascript:; http://www.haskell.org/mailman/listinfo/haskell-cafe

I tried that, but I got a 404, and gave up. I just tried again, and of
course you have to do it on a specific version. For future reference:
curl -X DELETE http://hackage.haskell.org/<pkg-name>-<version>/docs -u
<hackage-user>
Thanks, it seems to have done something now!
Erik
On Thu, Jul 3, 2014 at 4:29 PM, Carter Schonwald
Use the rest API to delete the current docs. That will reschedule a doc build.
On Thursday, July 3, 2014, Erik Hesselink
wrote: Hi cafe,
Does anyone know if there is a way to restart a documentation build on hackage? We have a package where the documentation failed to build due to a dependency lacking upper bounds. That has recently been fixed (using the new in-place cabal file editing feature), and we'd like to get documentation for our package now. Is there any way to do this (apart from uploading a new version without changes)?
Erik _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I did this yesterday, and there has not been a rebuild yet, so I'm guessing something is still wrong. The package in question is [1]. As you can see [2] there is only one build report, from the initial upload. Here's the curl command I did: $ curl -X DELETE http://hackage.haskell.org/package/rest-core-0.31.1/docs -u ErikHesselink -v Enter host password for user 'ErikHesselink': * Adding handle: conn: 0x7fb14180aa00 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x7fb14180aa00) send_pipe: 1, recv_pipe: 0 * About to connect() to hackage.haskell.org port 80 (#0) * Trying 88.198.224.242... * Connected to hackage.haskell.org (88.198.224.242) port 80 (#0) * Server auth using Basic with user 'ErikHesselink'
DELETE /package/rest-core-0.31.1/docs HTTP/1.1 Authorization: Basic blah User-Agent: curl/7.30.0 Host: hackage.haskell.org Accept: */*
< HTTP/1.1 204 No Content
* Server nginx/1.6.0 is not blacklisted
< Server: nginx/1.6.0
< Date: Thu, 03 Jul 2014 17:51:14 GMT
< Content-Type: text/plain
< Connection: keep-alive
<
* Connection #0 to host hackage.haskell.org left intact
Any ideas?
Erik
[1] http://hackage.haskell.org/package/rest-core-0.31.1
[2] http://hackage.haskell.org/package/rest-core-0.31.1/reports/
On Thu, Jul 3, 2014 at 4:32 PM, Erik Hesselink
I tried that, but I got a 404, and gave up. I just tried again, and of course you have to do it on a specific version. For future reference:
curl -X DELETE http://hackage.haskell.org/<pkg-name>-<version>/docs -u <hackage-user>
Thanks, it seems to have done something now!
Erik
On Thu, Jul 3, 2014 at 4:29 PM, Carter Schonwald
wrote: Use the rest API to delete the current docs. That will reschedule a doc build.
On Thursday, July 3, 2014, Erik Hesselink
wrote: Hi cafe,
Does anyone know if there is a way to restart a documentation build on hackage? We have a package where the documentation failed to build due to a dependency lacking upper bounds. That has recently been fixed (using the new in-place cabal file editing feature), and we'd like to get documentation for our package now. Is there any way to do this (apart from uploading a new version without changes)?
Erik _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi Erik,
I'm not sure how hackage.haskell.org is set up, but I do know the doc
builder keeps a private blacklist of failed packages.
If the docs don't appear within a few days, that might be the reason.
Chris
On Fri, Jul 4, 2014 at 8:49 PM, Erik Hesselink
I did this yesterday, and there has not been a rebuild yet, so I'm guessing something is still wrong. The package in question is [1]. As you can see [2] there is only one build report, from the initial upload. Here's the curl command I did:
$ curl -X DELETE http://hackage.haskell.org/package/rest-core-0.31.1/docs -u ErikHesselink -v Enter host password for user 'ErikHesselink': * Adding handle: conn: 0x7fb14180aa00 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x7fb14180aa00) send_pipe: 1, recv_pipe: 0 * About to connect() to hackage.haskell.org port 80 (#0) * Trying 88.198.224.242... * Connected to hackage.haskell.org (88.198.224.242) port 80 (#0) * Server auth using Basic with user 'ErikHesselink'
DELETE /package/rest-core-0.31.1/docs HTTP/1.1 Authorization: Basic blah User-Agent: curl/7.30.0 Host: hackage.haskell.org Accept: */*
< HTTP/1.1 204 No Content * Server nginx/1.6.0 is not blacklisted < Server: nginx/1.6.0 < Date: Thu, 03 Jul 2014 17:51:14 GMT < Content-Type: text/plain < Connection: keep-alive < * Connection #0 to host hackage.haskell.org left intact
Any ideas?
Erik
[1] http://hackage.haskell.org/package/rest-core-0.31.1 [2] http://hackage.haskell.org/package/rest-core-0.31.1/reports/
On Thu, Jul 3, 2014 at 4:32 PM, Erik Hesselink
wrote: I tried that, but I got a 404, and gave up. I just tried again, and of course you have to do it on a specific version. For future reference:
curl -X DELETE http://hackage.haskell.org/<pkg-name>-<version>/docs -u <hackage-user>
Thanks, it seems to have done something now!
Erik
On Thu, Jul 3, 2014 at 4:29 PM, Carter Schonwald
wrote: Use the rest API to delete the current docs. That will reschedule a doc build.
On Thursday, July 3, 2014, Erik Hesselink
wrote: Hi cafe,
Does anyone know if there is a way to restart a documentation build on hackage? We have a package where the documentation failed to build due to a dependency lacking upper bounds. That has recently been fixed (using the new in-place cabal file editing feature), and we'd like to get documentation for our package now. Is there any way to do this (apart from uploading a new version without changes)?
Erik _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

You can also upload the documentation yourself, see: http://fuuzetsu.co.uk/blog/posts/2014-01-06-Fix-your-Hackage-documentation.h... and http://fuuzetsu.co.uk/blog/posts/2014-01-06-Hackage-documentation-v2.html TL;DR: use this script: http://fuuzetsu.co.uk/misc/hackagedocs
hackagedocs <package-name> <package-version> <username> <password>
Christiaan
On Jul 3, 2014, at 3:55 PM, Erik Hesselink
Hi cafe,
Does anyone know if there is a way to restart a documentation build on hackage? We have a package where the documentation failed to build due to a dependency lacking upper bounds. That has recently been fixed (using the new in-place cabal file editing feature), and we'd like to get documentation for our package now. Is there any way to do this (apart from uploading a new version without changes)?
Erik _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Thanks Crhistiaan, the script works! For future reference I had to change -Hustar to --format=ustar for it to work with bsdtar. - Adam On Fri, Jul 4, 2014 at 11:33 AM, Christiaan Baaij < christiaan.baaij@gmail.com> wrote:
You can also upload the documentation yourself, see:
http://fuuzetsu.co.uk/blog/posts/2014-01-06-Fix-your-Hackage-documentation.h... and http://fuuzetsu.co.uk/blog/posts/2014-01-06-Hackage-documentation-v2.html
TL;DR: use this script: http://fuuzetsu.co.uk/misc/hackagedocs
hackagedocs <package-name> <package-version> <username> <password>
Christiaan
On Jul 3, 2014, at 3:55 PM, Erik Hesselink
wrote: Hi cafe,
Does anyone know if there is a way to restart a documentation build on hackage? We have a package where the documentation failed to build due to a dependency lacking upper bounds. That has recently been fixed (using the new in-place cabal file editing feature), and we'd like to get documentation for our package now. Is there any way to do this (apart from uploading a new version without changes)?
Erik _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (5)
-
Adam Bergmark
-
Carter Schonwald
-
Chris Wong
-
Christiaan Baaij
-
Erik Hesselink