-
Notifications
You must be signed in to change notification settings - Fork 405
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
SPDX: Fix package manager label #801
Conversation
This commit fixes the package manager label in external references to make them [conform to the spec](https://spdx.github.io/spdx-spec/package-information/#721-external-reference-field). Signed-off-by: Adolfo Garcia Veytia (puerco) <puerco@chainguard.dev>
Codecov Report
@@ Coverage Diff @@
## main #801 +/- ##
=======================================
Coverage 51.40% 51.40%
=======================================
Files 44 44
Lines 3354 3354
=======================================
Hits 1724 1724
Misses 1408 1408
Partials 222 222 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This commit bumps SPDX tools to 1.1.0 preparing the CI to validate SPDX 2.3 documents. Signed-off-by: Adolfo Garcia Veytia (puerco) <puerco@chainguard.dev>
ef94a0b
to
4d0688f
Compare
Thanks for this! Do you think this is something that warrants a v0.12.1 release? |
Mmh no, I think we should instead move to have ko@HEAD generate SPDX 2.3. This uncovered a bug in the SPDX tools, between 2.2.2 and 2.3 the external reference category label in the json schema was changed from using a dash to an underscore: https://github.com/spdx/spdx-spec/blob/master/schemas/spdx-schema.json#L325 https://github.com/spdx/spdx-spec/blob/development/v2.2.2/schemas/spdx-schema.json#L320 But it seems the spdx tools will use the latest json schema published regardless of the version stated in the doc. So right now, we have an invalid 2.2 document that passes the tests. I'll modify the code to generate SPDX 2.3 documents and file a bug on the SPDX tools project |
Ref: spdx/tools-java#74 |
Thanks @puerco! ❤️ |
I was looking at the changelog and noticed that the original link is dead, so here is the current version: https://spdx.github.io/spdx-spec/v2.3/package-information/#7211-description |
This commit fixes the package manager label in external references
to make them conform to the SPDX spec.
/cc @imjasonh
Signed-off-by: Adolfo Garcia Veytia (puerco) puerco@chainguard.dev