-
Notifications
You must be signed in to change notification settings - Fork 86
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
rpm: implement an RPM filescanner to discern RPM filepaths #1320
base: main
Are you sure you want to change the base?
Conversation
21db95f
to
f1bafd3
Compare
6e33ee1
to
217186a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1320 +/- ##
==========================================
+ Coverage 55.25% 55.43% +0.18%
==========================================
Files 278 284 +6
Lines 17199 17932 +733
==========================================
+ Hits 9503 9941 +438
- Misses 6738 6945 +207
- Partials 958 1046 +88 ☔ View full report in Codecov by Sentry. |
a248d33
to
9faca9c
Compare
I think I'll probably add some more test cases to the resolver but it'd be good to get some eyes on again. |
66ca82d
to
74673cc
Compare
cbfd810
to
fbcd81a
Compare
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.
SGTM
4ba2ec7
to
41d429f
Compare
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.
few tiny things and one potentially important thing. should be good to go after this
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.
Just one nit I noticed, otherwise LGTM
a9aa141
to
e357ba9
Compare
We should be accounting for more than one file per layer and therefore this change (from map[layer_id]claircore.File to map[layer_id][]claircore.File) is needed. Signed-off-by: crozzy <[email protected]>
Using the filepaths discovered by the RPM filescanner we can judge whether or not a language package has been installed via RPM or not. Signed-off-by: crozzy <[email protected]>
The Resolver compares file paths gleaned from RPM DBs and compares them to a Package.Filepath to try and determine if a package needs to be removed from an index report because its RPM counterpart has already been included. Signed-off-by: crozzy <[email protected]>
e357ba9
to
0eb95e5
Compare
Using the filepaths discovered by the RPM filescanner we can judge whether or not a language package has been installed via RPM or not.
TODO: