-
Notifications
You must be signed in to change notification settings - Fork 110
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
More SBOM logic improvements #1459
Conversation
See https://spdx.github.io/spdx-spec/v2.3/package-information/#721-external-reference-field Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nitty nits, but are there tests that exist? Could we add some if they don't?
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
@vaikas There are no tests, and there haven't ever been as far as I can tell. 😞 We can add an E2E test that asserts the SBOM in an APK against a goldenfile or something. From what I can tell there's not yet a great place to put in tests for our SBOM logic, because of how tangled the data flow is throughout these giant structs that depend on mutations using data from all sorts of places. But I think this PR makes progress toward a more "testable" state, FWIW. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There appears to be an upstream issue with this package that should not block melange CI: https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/515 Also, it looks like this has happened before, see melange PR chainguard-dev#1143 that was later reverted in PR chainguard-dev#1147. Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
This PR continues to improve the state of melange's SBOM code:
PACKAGE_MANAGER
instead ofPACKAGE-MANAGER
.