-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-source tag is no longer necessary #83
Comments
internal ref: GO-2001 |
@SoulPancake Yes, based on my reading of the Go Modules docs and the godoc.org docs, I believe this should be safe to remove. I'll defer to @sywhang and other maintainers on whether the change is welcome. |
@SoulPancake yup! We welcome contributions that'll remove it. |
Correct me if I'm wrong, but this seems like a regression. pkg.go.dev still uses |
@hacdias Yeah, that's right. Thanks for pointing this out. We'll revert the change. |
The package template generates a
go-source
tag along with thego-import
tag.sally/templates/package.html
Lines 4 to 5 in 434fc43
The
go-import
tag is used by thego
CLI to find the source code. Details at https://go.dev/ref/mod#vcs-find.However,
go-source
is a leftover from pre-Go-module days, in service of godoc.org: https://github.com/golang/gddo/wiki/Source-Code-LinksThis is no longer necessary -- pkg.go.dev serves documentation and module-version-aware source links directly.
The text was updated successfully, but these errors were encountered: