/ go Public
x/pkgsite: surface VCS clone path from the go-import meta tag #46243
Feedback is required from experts, contributors, and/or the community before a change can be made.
Take golang.org/x/mod, for example:
If I go to https://pkg.go.dev/golang.org/x/mod, the only link I see is https://github.com/golang/mod, which is fine for browsing the source - but not for
git clone, as github is just a mirror. I should be using
https://go.googlesource.com/modfor that, but pkgsite doesn't make that evident.
I get that perhaps this is an internal detail that most people shouldn't need to be aware of, but it's still relevant for peoplel wishing to contribute to a module. Especially for the x repos hosted by Gerrit - I seem to recall that you have to clone from the right URL for
git-codereviewto work properly.
The text was updated successfully, but these errors were encountered: