-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
Feature: documentation on json and json-pp formats #2826
Comments
@lucasgonze That's part of the upcomin work that's on deck... It could a nice GSoC project... this is a lot of work but super important in any case :) |
@pombredanne As far as I understood it, the |
This is correct. SPDX is a data exchange format not a scan output format. There are --spdx-tv and spdx-rdf output options for creating a SPDX output file (currently SPDX v2.1). |
I understand where my confusion is coming from. New in SPDX v2.2 is the JSON file format.
Source: https://spdx.github.io/spdx-spec/diffs-from-previous-editions/#i2-differences-from-v22-and-v21 However, |
@mjherzog It seems to me, that ScanCode does support the latest SPDX 2.2 standard. As a result of scanning with
I used the Java SPDX-Tool to convert the tag-value output file from ScanCode to the JSON format (ScanCode
And verified both the ScanCode Tag-Value and JSON file:
Did I overlook something? Does |
@Jeeppler This is correct. We support the SPDX 2.2 spec but not all the formats. Note that I have been mentoring a student to add support for JSON and YAML to the upstream SPDX Python library, but I did not have had the time to review and merge this unfortunately for now. This library needs some love. May be the right way could be to use the Java tools for now to perform the conversion? |
@Jeeppler I am happy to be corrected |
@pombredanne thank you for clarifying it. What Python library? Do you have a link? |
@Jeeppler Here's the link to the Python library: https://github.com/spdx/tools-python |
@Jeeppler FWIW I am technically a maintainer on the Python library: https://github.com/spdx/tools-python too but I do not have enough time to handle it these days and I am looking for sponsors that could help fund some work of community members on this. |
Or folks that could help maintain it. |
Description
Scancode-toolkit emphasizes output formats labeled only as "json" or "json-pp." There is no information on the underlying schema.
Is it the same as any format used by other tools? How is it different than SPDX?
Link to Documentation Page
https://scancode-toolkit.readthedocs.io/en/latest/cli-reference/output-format.html
Select Category
The text was updated successfully, but these errors were encountered: