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

SPDX 2.3 support #1311

Merged
merged 16 commits into from
Nov 18, 2022
Merged

SPDX 2.3 support #1311

merged 16 commits into from
Nov 18, 2022

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Nov 2, 2022

This PR makes a few notable changes:

  • Updates the spdx/tools-golang library to the current main (which is not released)
  • Updates the basic SPDX encoding/decoding to version 2.3 (there are some more enhancements to come later)
  • Consolidates the SPDX JSON and TagValue code paths to use the same conversion logic, which also:
    • Significantly improves both SPDX JSON and TagValue outputs

Fixes #1292

NOTE to reviewers: make sure to look at syft/formats/common/spdxhelpers/to_format_model.go, which is a consolidation of the tag-value and json converters, one of the more important things in this PR but it's collapsed by default in the GitHub UI.

Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow
Copy link
Contributor Author

kzantow commented Nov 7, 2022

NOTE: this is blocked on a fix in the tools-golang repo: spdx/tools-golang#170 -- Done!

Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
go.mod Outdated Show resolved Hide resolved
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow marked this pull request as ready for review November 14, 2022 17:34
@kzantow kzantow requested a review from a team November 14, 2022 17:35
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Copy link
Contributor

@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

@kzantow kzantow merged commit 42cb0a4 into anchore:main Nov 18, 2022
@kzantow kzantow deleted the feat/spdx-2.3 branch November 18, 2022 13:54
spiffcs added a commit that referenced this pull request Nov 18, 2022
* main:
  feat: SPDX 2.3 support (#1311)

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SPDX 2.3
2 participants