Skip to content

x/pkgsite: license ignored when not next to go.mod #43817

@zx2c4

Description

@zx2c4

https://git.zx2c4.com/wireguard-go/ is a MIT licensed repo. It contains two go modules. One is in the root -- /go.mod - and one is a bit deeper nested - /tun/netstack/go.mod. The repo also contains a license - /COPYING. All is well.

You can explore the APIs exposed by the repo's root module here: https://pkg.go.dev/golang.zx2c4.com/wireguard/tun

But if you try to do the same for the nested one, it complains that it can't find the license file: https://pkg.go.dev/golang.zx2c4.com/wireguard/tun/netstack

The problem is that it's looking for the COPYING file next to the non-root go.mod, rather than in the true root of the git repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsitepkgsite/licenseIssues related to licenses on pkg.go.dev. See our license policy https://pkg.go.dev/license-policy

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions