Incorrect detection of license per file #486
Labels
kind/bug
Categorizes issue or PR as related to a bug.
sig/release
Categorizes an issue or PR as relevant to SIG Release.
What happened:
I run
bom generate -erlang-otp.spdx .
over the Erlang/OTP programming language repository.It generates a source SBOM as expected, but the license included in each
*.erl
file is not detected correctly.What you expected to happen:
As an example, the file in
otp/lib/stdlib/src/lists.erl
starts as follows:I expected
bom
to detect the license, but it does not, as follows from thebom
output:How to reproduce it (as minimally and precisely as possible):
The file
lib/stdlib/src/lists.erl
contains a license,but the generated output does not show that, instead shows
MIT
and fieldLicenseInfoInFile: NONE
.Anything else we need to know?:
Thanks for this product.
Environment:
Ubuntu 22.04.5 LTS
Linux XXX 6.8.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: