-
Notifications
You must be signed in to change notification settings - Fork 315
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
chore(DependencyGraphNavigator): Avoid relying on manager name prefixes #9776
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9776 +/- ##
=========================================
Coverage 68.07% 68.07%
Complexity 1284 1284
=========================================
Files 249 249
Lines 8827 8827
Branches 918 918
=========================================
Hits 6009 6009
Misses 2432 2432
Partials 386 386
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
1116fd7
to
0cf2ac7
Compare
0cf2ac7
to
ed5d226
Compare
ed5d226
to
62fcc42
Compare
// TODO: Relax this assumption that package manager names start with the name of the type of project | ||
// they manage, for example that "GradleInspector" manages "Gradle" projects. | ||
val managers = graphs.keys.filter { it.startsWith(project.id.type) } | ||
// Collect all root indices for all manager whose graphs have projects of the respective type. |
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.
typo: managers
This removes the assumption that package manager names start with the name of the type of project they manage in favor of collecting all root indices that match the project and ensuring that they only stem from a single manager. Signed-off-by: Sebastian Schuberth <[email protected]>
…bled This fails early additionally to the check the `DependencyGraphNavigator` does in `directDependencies()`. The latter check is still and anyway required to unambiguously get the direct dependencies for a project unless the API is changed. Signed-off-by: Sebastian Schuberth <[email protected]>
62fcc42
to
2273808
Compare
This removes the assumption that package manager names start with the name of the type of project they manage in favor of collecting all root indices that match the project and ensuring that they only stem from a single manager.