google / google/licensecheck

Dual-licensed BSD 3-clause and GPL-2.0 not recognized as such

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
513
Forks
99
PR merge metrics
No merged PRs in 30d

Description

This [license file](https://pkg.go.dev/kernel.org/pub/linux/libs/security/libcap/cap@v1.2.67?tab=licenses) that specifies both BSD 3-clause and GPL-2.0 is only recognized as GPL-2.0. It's a bit mysterious to me why it's not recognizing the BSD part of the file, as it seems to contain a lot of text that fits the matcher.

I wrote a [sample program](https://go.dev/play/p/7ZRbBlAJKfQ) that runs licensecheck against the file, and it gives this output:

```
$ go run main.go
90.0% of text covered by licenses:
GPL-2.0 at [2276:20460] IsURL=false
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.