golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

Godoc.org can't find my project even after a couple of days #544

Closed adtac closed 6 years ago

adtac commented 6 years ago

https://godoc.org/github.com/adtac/go-akismet

https://github.com/adtac/go-akismet

I've tried searching for github.com/adtac/go-akismet, but I still get not found when I go to https://godoc.org/github.com/adtac/go-akismet

Anyway to force trigger a crawl?

dmitshur commented 6 years ago

You already do force a crawl when you visit the URL of a Go package.

The reason it's not showing up is there's no Go package at that import path. The directory exists, but it has no .go files:

$ go get -u github.com/adtac/go-akismet
package github.com/adtac/go-akismet: no Go files in /tmp/gopath/src/github.com/adtac/go-akismet

You probably meant to visit the godoc page for github.com/adtac/go-akismet/akismet, which works okay.

shantuo commented 6 years ago

gddo only crawl the package one at a time not the whole repo. You can trigger the crawl by visit the package godoc and then the parent repo page should show subdirectories under the repo.

adtac commented 6 years ago

Ah, thanks a lot, @shurcooL! It works now :+1: