Skip to content

go-licenses is not able to find license #1441

@pavelzw

Description

@pavelzw

When running go-licenses on a project that depends on go.uber.org/zap/exp/zapslog (like caddy), I get the following error:

E0530 10:04:20.840357   13917 library.go:122] Failed to find license for go.uber.org/zap/exp/zapslog: cannot find a known open source license for ".../gopath/pkg/mod/go.uber.org/zap/exp@v0.2.0/zapslog" whose name matches regexp ^(?i)((UN)?LICEN(S|C)E|COPYING|README|NOTICE).*$ and locates up until ".../gopath/pkg/mod/go.uber.org/zap/exp@v0.2.0"

It seems like you don't bundle the LICENSE in your uploaded go package.

Also see https://pkg.go.dev/go.uber.org/zap/exp@v0.2.0

image

It would be nice to bundle the license file of this project in the go packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions