-
Notifications
You must be signed in to change notification settings - Fork 506
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 bug fixes found during v1.22.0-beta.0 #2147
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This new functions generates a valid SPDX ID string, optionally it can take strings as seeds to generate a more intuitive ID for packages and files. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
Fixes a bug where month and day where on the wrong order in the SPDX document date. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This commit changes the way image references are treated when generating an SBOM from an image reference. Now, The spdx package will fetch all images for all architectures found in the index manifest and add all of them as independent spdx sub packages contained in the main pkg, referenced by their digest. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This introduces the SPDX object interface. This is important as we will start having functions that can take either packges or files, hence we create the interface to address them both. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This PR reworks the way we relate objects in the spdx package. Instead of having a simple subpackage method, this commit introduces a new Relationship type and a way to relate objects among themselves via a new spdx.Object interface. Both spdx.File and spdx.Package both embed a new type Entity which implements most of the SPDX Object interface. This simplifies the code a lot as I was able to remove a lot of redundant functions. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This commit fixes a bug where html entities where beign introduced into the spdx licenses and output. The code was wrongly using html/template instead of text/template. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This commit fixes a bug that was causing errors downloading go packages by fixing two things: 1. When packages have no revision, ie are imported without specifying a version, we now call the VCS at the latest revision, previously it was calling go VCS with an empty string as revision. 2. We now only pull packages without version only when they are imported that way. If we have a specific version we do not pull non versioned packages anymore. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
k8s-ci-robot
added
release-note
Denotes a PR that will be considered when it comes time to generate release notes.
kind/bug
Categorizes issue or PR as related to a bug.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/feature
Categorizes issue or PR as related to a new feature.
labels
Jun 29, 2021
k8s-ci-robot
added
needs-priority
cncf-cla: yes
Indicates the PR's author has signed the CNCF CLA.
labels
Jun 29, 2021
k8s-ci-robot
added
area/release-eng
Issues or PRs related to the Release Engineering subproject
sig/release
Categorizes an issue or PR as relevant to SIG Release.
approved
Indicates a PR has been approved by an approver from all required OWNERS files.
size/XXL
Denotes a PR that changes 1000+ lines, ignoring generated files.
labels
Jun 29, 2021
saschagrunert
approved these changes
Jul 2, 2021
k8s-ci-robot
added
the
lgtm
"Looks good to me", indicates that a PR is ready to be merged.
label
Jul 2, 2021
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: puerco, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
approved
Indicates a PR has been approved by an approver from all required OWNERS files.
area/release-eng
Issues or PRs related to the Release Engineering subproject
cncf-cla: yes
Indicates the PR's author has signed the CNCF CLA.
kind/bug
Categorizes issue or PR as related to a bug.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/feature
Categorizes issue or PR as related to a new feature.
lgtm
"Looks good to me", indicates that a PR is ready to be merged.
needs-priority
release-note
Denotes a PR that will be considered when it comes time to generate release notes.
sig/release
Categorizes an issue or PR as relevant to SIG Release.
size/XXL
Denotes a PR that changes 1000+ lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug
/kind cleanup
/kind feature
What this PR does / why we need it:
This PR fixes a number of bugs and adds a few features that surfaced during the v1.22.0-beta.0 cut.
spdx.Object
interfaceWith these changes in place, we can now start working on the final form of the Kubernetes SBOMs.
Which issue(s) this PR fixes:
Part of #1837
Special notes for your reviewer:
/milestone v1.22
Does this PR introduce a user-facing change?