-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix MetadataType in artifacts #108
Conversation
Signed-off-by: David Wertenteil <[email protected]>
PR Description updated to latest commit (1a921cf) |
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
User description
Sorry, we do not accept changes directly against this repository. Please see
CONTRIBUTING.md for information on where and how to contribute instead.
Type
bug_fix, tests
Description
MetadataType
was not being set during the unpacking ofSyftPackage
.SyftPackage
unmarshalling correctly setsID
andMetadataType
.Changes walkthrough
syfttypes.go
Set MetadataType in SyftPackage Unpacking
pkg/apis/softwarecomposition/syfttypes.go
MetadataType
based on the determined type.syfttypes.go
Set MetadataType in SyftPackage Unpacking for v1beta1
pkg/apis/softwarecomposition/v1beta1/syfttypes.go
MetadataType
based on the determined type.syfttypes_test.go
Add Tests for SyftPackage JSON Unmarshalling
pkg/apis/softwarecomposition/syfttypes_test.go
SyftPackage
JSON unmarshalling.MetadataType
andID
fields after unmarshalling.