golang / gddo

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

gosrc: resolve meta tag before selecting raw vcs service #611

Open urandom2 opened 5 years ago

urandom2 commented 5 years ago

Currently when the import path matches a known service, via regex, it will use hosting provider APIs instead of shelling out to VCS. This benefit is lost to any vanity services, since gopkg.in/ini.v1 does not match the github regexp.

I see that gosrc.lookupURLTemplate is used to create psudo-entries in gosrc.vcsServices, so such entries at least get source linking, however it seems better to flatten the meta tag down and treat them like the service they point to.