Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jonasagx
Copy link
Contributor

@jonasagx jonasagx commented Mar 31, 2022

Adapts grype to use LocationSet introduced in anchore/syft#930
Updates tests to support Dart packages.

Signed-off-by: Jonas Galvão Xavier [email protected]

Signed-off-by: Jonas Galvão Xavier <[email protected]>
@jonasagx jonasagx self-assigned this Mar 31, 2022
Signed-off-by: Jonas Galvão Xavier <[email protected]>
@jonasagx jonasagx marked this pull request as draft March 31, 2022 23:59
Signed-off-by: Jonas Galvão Xavier <[email protected]>
@jonasagx jonasagx changed the title use pkg LocationSet Migrate LocationSet and add Dart support Apr 1, 2022
definedPkgTypes.Add(p)
}
// exceptions: rust, php, and msrc (kb) are not under test
// exceptions: rust, php, dart and msrc (kb) are not under test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Q: how we decide what goes in this list of exceptions?

Copy link
Contributor

@wagoodman wagoodman Apr 1, 2022

Choose a reason for hiding this comment

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

good question. I think context matters is the short answer. MSRC is not officially supported, and rust/php does not have specific support other than the stock matcher. I think dart falls into the latter category as well. As we add more catalogers we should try to eventually follow up with equivalent matcher support in grype (out of scope for this PR).

Signed-off-by: Jonas Galvão Xavier <[email protected]>
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.

Thanks for picking this one up 🙌

@jonasagx jonasagx marked this pull request as ready for review April 1, 2022 15:20
@jonasagx jonasagx merged commit 182c86d into anchore:main Apr 1, 2022
@jonasagx jonasagx deleted the add-location-set branch April 8, 2022 17:09
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.

2 participants