-
Notifications
You must be signed in to change notification settings - Fork 59
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
added referenceType enum #162
Conversation
Signed-off-by: pxp928 <parth.psu@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes, else LGTM!
spdx/common/ext_package_manager.go
Outdated
package common | ||
|
||
// ReferenceType is an [idstring] as defined in Appendix VI; | ||
type ReferenceType string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think its fine to leave them as strings, we explicitly want to use the types specified in the spec.
spdx/common/ext_package_manager.go
Outdated
const ( | ||
Cpe23Type ReferenceType = "cpe23Type" | ||
PurlType ReferenceType = "purl" | ||
Ref2Type ReferenceType = "LocationRef-acmeforge" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is just a testing string and isn't part of the spec (https://spdx.github.io/spdx-spec/v2.3/external-repository-identifiers/#f3-package-manager)
Cpe types are technically under the security section, so another file would be good here! Thanks!
Signed-off-by: pxp928 <parth.psu@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM , needs additional enums specified as in #153 but this sets the boilerplate for them.
Signed-off-by: pxp928 parth.psu@gmail.com
Added constants for referenceType in
PackageExternalReference