And yes. The curl option is -d, not -F, so 

curl -X POST -d "path=${IMPORTPATH}" https://godoc.org/-/refresh

works and could easily be made into a post-push hook to be run in the
root of the package like so:

for pkg in $(go list ./...); do
        curl -X POST -d "path=${pkg}" https://godoc.org/-/refresh
done

On Sat, 2018-12-22 at 07:44 +1030, Dan Kortschak wrote:
> A quick read of the gddo source suggests that this should work (but
> presumably because I have missed something, it doesn't)
> 
> curl -X POST -F "path=${IMPORTPATH}" https://godoc.org/-/refresh
> 
> On Thu, 2018-12-20 at 09:55 +0100, Sebastien Binet wrote:
> > 
> > hi there,
> > 
> > in all my Go-based projects I have a bunch of CI/CD tools that keep
> > me
> > honest about APIs, tests, coverage and what not.
> > 
> > but it happens from time to time that I either break an API and/or
> > add a
> > new field, a new function a new type, etc...
> > 
> > and it has happened also a few times that one of my user comes back
> > to me
> > and says the godoc page is stale, missing the new documentation for
> > some
> > type, etc...
> > 
> > has somebody written a tool that crawls all the packages and
> > "subpackages"
> > of a repository and updates the godoc page?
> > this could be useful as a post-hook when merging into "master" for
> > example.
> > 
> > cheers,
> > -s
> > 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to