Skip to content

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

Open
@hyangah

Description

@hyangah

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/[email protected]
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.pkgsiteproxy.golang.org

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions