Skip to content

x/pkgsite: support SPDX or URL license declarations #75067

@makew0rld

Description

@makew0rld

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/hyphacoop/[email protected]/drisl

What is your user agent?

Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

Screenshot

Image

What did you do?

My project is dual licensed. There is an appropriately recognized LICENSE-MIT and LICENSE-APACHE file. But the LICENSE file looks like this:

SPDX-License-Identifier: MIT OR Apache-2.0

This work is dual-licensed under the MIT and Apache 2.0.
You can choose between one of them to use this work.

MIT: https://www.opensource.org/licenses/mit
Apache-2.0: https://www.apache.org/licenses/LICENSE-2.0

I contend this is a very human and machine readable license file, and pkg.go.dev should be able to recognize it. Maybe by updating licensechecker to support SPDX declarations? Or by having pkg.go.dev use the URL detection functionality? Not sure what's going on here. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.pkgsite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions