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

Empty purl in SPDX output #1958

Closed
vargenau opened this issue Jul 26, 2023 · 5 comments
Closed

Empty purl in SPDX output #1958

vargenau opened this issue Jul 26, 2023 · 5 comments
Labels
bug Something isn't working good-first-issue Good for newcomers

Comments

@vargenau
Copy link
Contributor

What happened:

SPDX output contains empty purl:

ExternalRef: PACKAGE-MANAGER purl pkg:/

which is not valid purl.

What you expected to happen:

The line above should be removed from the output.

Steps to reproduce the issue:

syft docker:bitnami/mongodb:6.0.6-debian-11-r0 --scope all-layers -o spdx-tag-value@2.2 

mongodb-6.0.6-debian-11-r0.spdx.txt

Anything else we need to know?:

Environment:

  • Output of syft version: syft 0.85.0
  • OS (e.g: cat /etc/os-release or similar): Ubuntu 2023.04
@vargenau vargenau added the bug Something isn't working label Jul 26, 2023
@vargenau
Copy link
Contributor Author

It gives warnings in Grype:

[0001]  WARN unable to parse purl: pkg:/ from-lib=syft
[0002]  WARN unable to parse purl: pkg:/ from-lib=syft

@tgerla tgerla added the good-first-issue Good for newcomers label Aug 3, 2023
@tgerla
Copy link
Contributor

tgerla commented Aug 3, 2023

Thanks, @vargenau! We appreciate the report. We'll look at this when we can, and if you would like to look into it, feel free to let us know and we can get you pointed in the right direction.

@kzantow
Copy link
Contributor

kzantow commented Aug 3, 2023

Hi @vargenau this appears to be fixed in the latest Syft (v0.86.1, fixed as part of this PR). I'm going to close this as completed, but please ping us if you continue to see this issue!

@kzantow kzantow closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2023
@vargenau
Copy link
Contributor Author

I confirm in is fixed in syft 0.87.0

@kzantow
Copy link
Contributor

kzantow commented Aug 16, 2023

Thanks for following up, @vargenau!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good-first-issue Good for newcomers
Projects
Archived in project
Development

No branches or pull requests

3 participants