Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syft outputs incorrect license LicenseRef-AND #2899

Open
makotosato-at opened this issue May 24, 2024 · 1 comment
Open

syft outputs incorrect license LicenseRef-AND #2899

makotosato-at opened this issue May 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working needs-investigation

Comments

@makotosato-at
Copy link

What happened:
License BSD-2-Clause AND BSD-3-Clause AND Public-Domain becomes
LicenseRef-AND AND BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Public-Domain

What you expected to happen:
It should be: (BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Public-Domain)

Steps to reproduce the issue:
On alpine linux

# apk add libarchive
# export SYFT_FORMAT_SPDX_JSON_PRETTY=true
# syft -o spdx-json@2.2 / > spdx.json

spdx.json

{                                                                                
   "name": "libarchive",                                                           
...
   "licenseDeclared": "LicenseRef-AND AND BSD-2-Clause AND BSD-3-Clause AND LicenseRef-Public-Domain",

Anything else we need to know?:

Environment:

  • Output of syft version: 1.4.1
  • OS (e.g: cat /etc/os-release or similar): alpine linux 3.19.1
@makotosato-at makotosato-at added the bug Something isn't working label May 24, 2024
@spiffcs spiffcs self-assigned this May 30, 2024
@tgerla
Copy link
Contributor

tgerla commented May 30, 2024

Hi @makotosato-at, thanks for the report. We will take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-investigation
Projects
Status: Backlog
Development

No branches or pull requests

3 participants