Skip to content
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

x/pkgsite: change go.mod link to proxy.golang.org's go.mod link #55971

Open
hyangah opened this issue Sep 30, 2022 · 0 comments
Open

x/pkgsite: change go.mod link to proxy.golang.org's go.mod link #55971

hyangah opened this issue Sep 30, 2022 · 0 comments

Comments

@hyangah
Copy link
Contributor

hyangah commented Sep 30, 2022

Currently, the go.mod link in the details section is linked to the source repository's go.mod file.

Example: https://pkg.go.dev/github.com/pedroalbanese/edgetk@v1.2.3
Screen Shot 2022-09-30 at 9 15 08 AM

But it's not guaranteed that the source still hosts the file or the same content.
Instead use the link to the proxy.golang.org's .mod endpoint. For example,

https://proxy.golang.org/<proxy-protocol-encoded-module-path>/@v/<canonical-version>.mod

@gopherbot gopherbot added this to the Unreleased milestone Sep 30, 2022
@suzmue suzmue modified the milestones: Unreleased, pkgsite/later Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants