golang / gddo

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

gosrc: fossil support #620

Open dncohen opened 5 years ago

dncohen commented 5 years ago

I think I have the go-import meta tag correct for a fossil vanity domain. But I can't seem to get the go-source meta tag correct.

I'm testing with src.d10.dev/getvain. I try https://godoc.org/?q=src.d10.dev%2Fgetvain but there I get "No packages found."

I must be missing something. I'd appreciate any help to get it right. (I.e. is there a way to make godoc.org more verbose about what went wrong?)

dncohen commented 5 years ago

More details... When I search godoc.org for src.d10.dev/getvain, it makes a request and the server returns

        <meta name="go-import" content="src.d10.dev/getvain fossil https://src.d10.dev/getvain" />
        <meta name="go-source" content="src.d10.dev/getvain https://src.d10.dev/getvain https://src.d10.dev/getvain/dir{/dir}?ci=tip&type=tree https://src.d10.dev/getvain/doc/tip{/dir}/{file}" />

But I don't see any further queries in the log, so I don't believe godoc.org is following any of the URLs in the meta tag.

dncohen commented 5 years ago

I see now that gddo doesn't support all the vcs that "go get" does. Consider this a feature request for fossil-scm to eventually be included.